Skip to content

Commit

Permalink
ci: fix the publish of OLM bundles
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <[email protected]>
  • Loading branch information
NiccoloFei committed Mar 26, 2024
1 parent bfe0eb5 commit d895d7a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit d895d7a

Please sign in to comment.