Skip to content

Commit

Permalink
Fix 'fatal: You are not currently on a branch'
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Nov 26, 2024
1 parent ad6aa44 commit 20518b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/update-submodule-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ jobs:
run: python update_repo.py

- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Update files based on submodule changes"
git push
git push origin HEAD:${{ github.event.pull_request.head.ref }}

0 comments on commit 20518b6

Please sign in to comment.