Skip to content

Commit 05c6f3c

Browse files
committed
MAINT: Direct [ci skip]
1 parent 450acb1 commit 05c6f3c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/credit.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: Contributor credit
33
on: # 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

119
permissions:
@@ -24,7 +22,6 @@ jobs:
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: |
@@ -36,8 +33,10 @@ jobs:
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'

0 commit comments

Comments
 (0)