fix: save manifest before branch switch to avoid overwrite on push
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
851e263213
commit
524792465f
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in New Issue