Skip to content

Commit f98e2f8

Browse files
committed
BUG: Fix bug [ci skip]
1 parent 05c6f3c commit f98e2f8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/credit.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on: # yamllint disable-line rule:truthy
77
workflow_dispatch:
88

99
permissions:
10+
contents: write
1011
pull-requests: write
1112

1213
jobs:
@@ -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'

0 commit comments

Comments
 (0)