fix: save manifest before branch switch to avoid overwrite on push
Publish Release / build-net9 (push) Successful in 58s Details
Publish Release / build-net10 (push) Successful in 58s Details
Publish Release / release (push) Failing after 12s Details

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Filtik 2026-07-02 22:28:39 +02:00
parent 851e263213
commit 524792465f
1 changed files with 6 additions and 1 deletions

View File

@ -144,9 +144,14 @@ jobs:
run: |
git config user.name "gitea-actions"
git config user.email "actions@noreply.local"
cp manifest.json /tmp/manifest_updated.json
git fetch origin main
git checkout main
git pull --rebase origin main
cp /tmp/manifest_updated.json manifest.json
git add manifest.json
git diff --staged --quiet || git commit -m "chore: update manifest for ${{ github.ref_name }}"
git push origin HEAD:${{ github.event.repository.default_branch }}
git push origin main
- name: Create release and upload assets
run: |