Merge pull request 'fix: serialize version bumps and rebase before push' (#4) from chore/bootstrap into main

Reviewed-on: #4
This commit is contained in:
dasemu committed 2026-10-18 19:22:59 +00:00
commit 6c6c2bfc69
1 file changed
+6
+6
View File
@@ -7,6 +7,10 @@ on:
permissions: permissions:
contents: write contents: write
concurrency:
group: version-${{ gitea.ref_name }}
cancel-in-progress: false
jobs: jobs:
bump: bump:
if: ${{ !contains(gitea.event.head_commit.message, '[skip ci]') && gitea.actor != 'gitea-actions' }} if: ${{ !contains(gitea.event.head_commit.message, '[skip ci]') && gitea.actor != 'gitea-actions' }}
@@ -14,6 +18,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
ref: ${{ gitea.ref_name }}
fetch-depth: 0 fetch-depth: 0
token: ${{ gitea.token }} token: ${{ gitea.token }}
@@ -57,6 +62,7 @@ jobs:
run: | run: |
git add VERSION git add VERSION
git commit -m "chore(release): v${{ steps.version.outputs.new }} [skip ci]" git commit -m "chore(release): v${{ steps.version.outputs.new }} [skip ci]"
git pull --rebase origin ${{ gitea.ref_name }}
git push origin HEAD:${{ gitea.ref_name }} git push origin HEAD:${{ gitea.ref_name }}
- name: Merge main back into development - name: Merge main back into development