From d895d7a7dc0da8a4b2d49a3d518e7eeae6481ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Fei?= Date: Mon, 25 Mar 2024 18:43:46 +0100 Subject: [PATCH] ci: fix the publish of OLM bundles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niccolò Fei --- .github/workflows/release-publish.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 30110f0fed..b26d4887d0 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -357,10 +357,14 @@ jobs: publish_bundle: name: Publish OLM Bundle - needs: olm-bundle + needs: + - olm-bundle + - release-binaries if: | (always() && !cancelled()) && - needs.release-binaries.result == 'success' + needs.release-binaries.result == 'success' && + needs.olm-bundle.result == 'success' && + github.repository_owner == 'cloudnative-pg' env: VERSION: ${{ needs.release-binaries.outputs.version }} runs-on: ubuntu-22.04 @@ -398,8 +402,8 @@ jobs: # Skip creating the commit if there are no changes [ -n "$(git status -s)" ] || exit 0 - git add bundle/${{ env.VERSION }} - git commit -m "${COMMIT_MESSAGE}" + git add bundles/${{ env.VERSION }} + git commit -sm "${COMMIT_MESSAGE}" - name: Push commit uses: ad-m/github-push-action@v0.8.0