Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix the publish of OLM bundles #29

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading