File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ name: Contributor credit
33on : # yamllint disable-line rule:truthy
44 # Scheduled actions only run on the main repo branch, which is exactly what we want
55 schedule :
6- # TODO: After making sure it works in `main` for a while, switch to monthly
7- # - cron: '0 0 1 * *' # first day of the month at midnight
8- - cron : ' */30 * * * *' # every half hour
6+ - cron : ' 0 0 * * 0' # At 00:00 on Sunday
97 workflow_dispatch :
108
119permissions :
2422 with :
2523 python-version : ' 3.12'
2624 - run : pip install pygithub -e .
27- - run : git checkout -b credit
2825 - run : python tools/dev/update_credit_json.py
2926 - run : git add -f doc/sphinxext/prs/*.json
3027 - run : |
3633 - name : Create PR
3734 run : |
3835 set -xeo pipefail
36+ git checkout -b credit
3937 git config --global user.email "114827586+autofix-ci[bot]@users.noreply.github.com"
4038 git config --global user.name "autofix-ci[bot]"
4139 git commit -am "MAINT: Update code credit"
42- gh pr create --title "MAINT: Update code credit" --body "Created by \"${{ github.workflow }}\" GitHub action." --label "no-changelog-entry-needed"
40+ git push origin credit
41+ gh pr create --head --title "MAINT: Update code credit" --body "Created by \"${{ github.workflow }}\" GitHub action." --label "no-changelog-entry-needed"
4342 if : steps.status.outputs.dirty == 'true'
You can’t perform that action at this time.
0 commit comments