Fix Forgejo workflow: handle detached HEAD state for git push
Some checks failed
Compile apt-layer / compile (push) Has been cancelled

This commit is contained in:
robojerk 2025-07-15 08:41:01 -07:00
parent a138be7f1e
commit dfab658040

View file

@ -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 }}