diff --git a/.github/workflows/release-chart.yaml b/.github/workflows/release-chart.yaml index a8e50ec..75244c0 100644 --- a/.github/workflows/release-chart.yaml +++ b/.github/workflows/release-chart.yaml @@ -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