From 20518b6d415ffda0c7463fbfcb77b5f25658f26c Mon Sep 17 00:00:00 2001 From: "Hunter T." Date: Tue, 26 Nov 2024 13:52:14 -0800 Subject: [PATCH] Fix 'fatal: You are not currently on a branch' --- .github/workflows/update-submodule-files.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-submodule-files.yml b/.github/workflows/update-submodule-files.yml index 0ddcf59..bba7c4b 100644 --- a/.github/workflows/update-submodule-files.yml +++ b/.github/workflows/update-submodule-files.yml @@ -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 }}