Skip to content

Commit

Permalink
BUG: Fix bug [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Aug 15, 2024
1 parent 05c6f3c commit f98e2f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/credit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on: # yamllint disable-line rule:truthy
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
Expand All @@ -33,10 +34,11 @@ jobs:
- name: Create PR
run: |
set -xeo pipefail
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git checkout -b credit
git config --global user.email "114827586+autofix-ci[bot]@users.noreply.github.com"
git config --global user.name "autofix-ci[bot]"
git commit -am "MAINT: Update code credit"
git push origin credit
gh pr create --head --title "MAINT: Update code credit" --body "Created by \"${{ github.workflow }}\" GitHub action." --label "no-changelog-entry-needed"
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")
echo "Opened https://github.com/mne-tools/mne-python/pulls/${PR_NUM}" >> $GITHUB_STEP_SUMMARY
if: steps.status.outputs.dirty == 'true'

0 comments on commit f98e2f8

Please sign in to comment.