mirror of
https://github.com/RiDDiX/home-assistant-addons.git
synced 2026-07-14 12:28:09 +08:00
fix: serialize releases with concurrency group and rebase on push
This commit is contained in:
7
.github/workflows/release-addons.yaml
vendored
7
.github/workflows/release-addons.yaml
vendored
@@ -26,6 +26,11 @@ on:
|
|||||||
# version: "3.0.0"
|
# version: "3.0.0"
|
||||||
# changelogUrl: "https://..."
|
# changelogUrl: "https://..."
|
||||||
|
|
||||||
|
# Serialize all releases to prevent push conflicts
|
||||||
|
concurrency:
|
||||||
|
group: addon-release
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -101,6 +106,8 @@ jobs:
|
|||||||
- name: Commit and Push
|
- name: Commit and Push
|
||||||
run: |
|
run: |
|
||||||
git commit -m "release(${{ steps.event_parser.outputs.project }}): ${{ steps.event_parser.outputs.version }}"
|
git commit -m "release(${{ steps.event_parser.outputs.project }}): ${{ steps.event_parser.outputs.version }}"
|
||||||
|
# Pull any changes from concurrent releases and rebase
|
||||||
|
git pull --rebase origin main
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
|
|||||||
Reference in New Issue
Block a user