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: |