Skip to content

Commit

Permalink
ci: fix the publish of OLM bundles (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: Niccolò Fei <[email protected]>
  • Loading branch information
NiccoloFei authored Mar 26, 2024
1 parent c6e26ca commit f0a0b3e
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 @@ -373,10 +373,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 @@ -414,8 +418,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 f0a0b3e

Please sign in to comment.