Fix Forgejo workflow: handle detached HEAD state for git push
Some checks failed
Compile apt-layer / compile (push) Has been cancelled
Some checks failed
Compile apt-layer / compile (push) Has been cancelled
This commit is contained in:
parent
a138be7f1e
commit
dfab658040
1 changed files with 2 additions and 1 deletions
|
|
@ -254,4 +254,5 @@ jobs:
|
|||
git config --local user.name "GitHub Action"
|
||||
git add apt-layer.sh install-apt-layer.sh
|
||||
git diff --staged --quiet || git commit -m "Auto-compile apt-layer and installer from commit ${{ github.sha }}"
|
||||
git push
|
||||
# Push to the current branch (handle detached HEAD)
|
||||
git push origin HEAD:${{ github.ref_name }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue