mirror of
https://github.com/RiDDiX/home-assistant-addons.git
synced 2026-07-14 12:20:51 +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"
|
||||
# changelogUrl: "https://..."
|
||||
|
||||
# Serialize all releases to prevent push conflicts
|
||||
concurrency:
|
||||
group: addon-release
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -101,6 +106,8 @@ jobs:
|
||||
- name: Commit and Push
|
||||
run: |
|
||||
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
|
||||
|
||||
- name: Create GitHub Release
|
||||
|
||||
Reference in New Issue
Block a user