mirror of
https://github.com/Dasemu/Maskarr.git
synced 2026-11-27 07:46:15 +00:00
fix: serialize version bumps and rebase before push
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cafa281d45
commit
32aaf00b84
1 file changed
+6
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user