-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
name: Refresh updated at | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
branches: | ||
- master | ||
# name: Refresh updated at | ||
# on: | ||
# pull_request: | ||
# types: | ||
# - closed | ||
# branches: | ||
# - master | ||
|
||
jobs: | ||
refresh_updated_at: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' | ||
ref: 'master' | ||
# jobs: | ||
# refresh_updated_at: | ||
# if: github.event.pull_request.merged == true | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# with: | ||
# token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' | ||
# ref: 'master' | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.9' | ||
token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' | ||
# - uses: actions/setup-python@v4 | ||
# with: | ||
# python-version: '3.9' | ||
# token: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' | ||
|
||
- run: "pip install papermill==2.4.0 requests pandas==1.5.3 ipykernel GitPython==3.1.32" | ||
# - run: "pip install papermill==2.4.0 requests pandas==1.5.3 ipykernel GitPython==3.1.32" | ||
|
||
- name: Get required variables And run script | ||
env: | ||
issue_number: ${{ github.event.pull_request.number }} | ||
GITHUB_TOKEN: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' | ||
# - name: Get required variables And run script | ||
# env: | ||
# issue_number: ${{ github.event.pull_request.number }} | ||
# GITHUB_TOKEN: '${{ secrets.PERSONAL_ACCESS_TOKEN }}' | ||
|
||
run: | | ||
papermill -p pull_number $issue_number Naas_Update_dates_on_PR_merged.ipynb ./Naas_Update_dates_on_PR_merged.out.ipynb | ||
rm ./Naas_Update_dates_on_PR_merged.out.ipynb | ||
- name: Commit and push | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
(git commit -m 'UpdatedAt: Refresh' -a && git push) || echo "💡 It seems that there is nothing to commit." | ||
# run: | | ||
# papermill -p pull_number $issue_number Naas_Update_dates_on_PR_merged.ipynb ./Naas_Update_dates_on_PR_merged.out.ipynb | ||
# rm ./Naas_Update_dates_on_PR_merged.out.ipynb | ||
# - name: Commit and push | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "GitHub Action" | ||
# (git commit -m 'UpdatedAt: Refresh' -a && git push) || echo "💡 It seems that there is nothing to commit." |