From 524792465fc43277137d0db7818f9fc81e1f88bc Mon Sep 17 00:00:00 2001 From: Filtik Date: Thu, 2 Jul 2026 22:28:39 +0200 Subject: [PATCH] fix: save manifest before branch switch to avoid overwrite on push Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 20b11f5..74fb8e8 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -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: |