From 80d683959b499ecd868a79d173e55c0617f6faa2 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Fri, 20 Oct 2023 12:19:33 +0200 Subject: [PATCH] ci: force push antsibull-changelog changes (#366) ##### SUMMARY pre-commit.ci automatically pushes styling commit to the release please branch and might render the checkout in CI out of sync with the origin. This makes sure the release-please workflow does not fail by force pushing to the branch. --- .github/workflows/release-please.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 311cf70..7747606 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -5,6 +5,10 @@ on: name: release-please +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: release-please: # The secret HCLOUD_BOT_TOKEN is only available on the main repo, not in forks. @@ -76,4 +80,4 @@ jobs: git add changelogs/ CHANGELOG.rst git commit -m "chore(main): changelog for version ${{ needs.release-please.outputs.version }}" - git push origin ${{ needs.release-please.outputs.branch }} + git push --force origin ${{ needs.release-please.outputs.branch }}