Skip to content

Commit

Permalink
update stubs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheltienne authored Mar 19, 2024
1 parent 254b2b1 commit aad5415
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/stubs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,16 @@ jobs:
run: python tools/stubgen.py
- name: Push stub files
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
env:
GH_TOKEN: ${{ github.token }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
if [ -n "$(git status --porcelain)" ]; then
branch_name="update-stub-files-$(date +'%Y%m%d-%H%M%S')"
git checkout -b "$branch_name"
git add mne_icalabel/\*.pyi
git commit -m "deploy stub files [ci skip]"
git push
git push --set-upstream origin "$branch_name"
gh pr create --title "Update stub files [bot]" --body "Auto-generated PR for updating stub files." --base main
fi

0 comments on commit aad5415

Please sign in to comment.