Compare commits

...
Author SHA1 Message Date
lukaszraczyloandGitHub a2ecc6c453 fix(release): serialise chart releases so the gh-pages push does not race (#1)
Two repository_dispatch releases pushed gh-pages together; the second
was rejected with 'cannot lock ref ... expected ...'. Add a concurrency
group and rebase before the push.
2026-11-30 07:12:35 +00:00
+7
View File
@@ -25,6 +25,12 @@ on:
permissions:
contents: write
# Two chart releases used to push gh-pages at the same time and the second
# lost the ref lock. Serialise them; the checkout then sees the previous push.
concurrency:
group: release-chart-gh-pages
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
@@ -196,4 +202,5 @@ jobs:
# Only add specific paths, not source-repo
git add charts/ index.yaml README.md
git diff --staged --quiet || git commit -m "Release ${{ steps.inputs.outputs.chart_name }} ${{ steps.inputs.outputs.version }}"
git pull --rebase origin gh-pages
git push origin gh-pages