Skip to content

Commit

Permalink
[workflow] test for bot account
Browse files Browse the repository at this point in the history
  • Loading branch information
NSPC911 committed Jul 30, 2024
1 parent f9cdc28 commit 6ffebe5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/submodule-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ jobs:
- name: Commit and push changes
if: env.changes == 'true'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global user.name 'NSPBot911'
git config --global user.email ${{ secrets.BOT_EMAIL }}
git add --all
git commit -m "Updated submodules" -m "Triggered by ${{ github.event.inputs.title }}"
git pull origin main
git push origin main
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}

0 comments on commit 6ffebe5

Please sign in to comment.