File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ on: # yamllint disable-line rule:truthy
77 workflow_dispatch :
88
99permissions :
10+ contents : write
1011 pull-requests : write
1112
1213jobs :
@@ -33,10 +34,11 @@ jobs:
3334 - name : Create PR
3435 run : |
3536 set -xeo pipefail
37+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
38+ git config --global user.name "github-actions[bot]"
3639 git checkout -b credit
37- git config --global user.email "114827586+autofix-ci[bot]@users.noreply.github.com"
38- git config --global user.name "autofix-ci[bot]"
3940 git commit -am "MAINT: Update code credit"
4041 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"
42+ PR_NUM=$(gh pr create --base main --head credit --title "MAINT: Update code credit" --body "Created by \"${{ github.workflow }}\" GitHub action." --label "no-changelog-entry-needed")
43+ echo "Opened https://github.com/mne-tools/mne-python/pulls/${PR_NUM}" >> $GITHUB_STEP_SUMMARY
4244 if : steps.status.outputs.dirty == 'true'
You can’t perform that action at this time.
0 commit comments