forked from cloudnative-pg/cloudnative-pg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Niccolò Fei <[email protected]>
- Loading branch information
1 parent
74e3053
commit 34b561f
Showing
1 changed file
with
4 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ jobs: | |
outputs: | ||
is_latest: ${{ env.IS_LATEST }} | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: Check release branch | ||
run: | | ||
|
@@ -118,13 +121,6 @@ jobs: | |
echo "COMMIT=${commit_short}" >> $GITHUB_ENV | ||
echo "author_name=${author_name}" >> $GITHUB_OUTPUT | ||
echo "author_email=${author_email}" >> $GITHUB_OUTPUT | ||
- | ||
name: Import GPG key | ||
id: import_gpg | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
- | ||
name: Set GoReleaser environment | ||
run: | | ||
|
@@ -142,7 +138,6 @@ jobs: | |
COMMIT: ${{ env.COMMIT }} | ||
VERSION: ${{ steps.build-meta.outputs.version }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} | ||
- | ||
name: Publish Krew | ||
if: ${{ steps.check-branch.outputs.is_latest == 'true' }} | ||
|
@@ -379,8 +374,7 @@ jobs: | |
if: | | ||
(always() && !cancelled()) && | ||
needs.release-binaries.result == 'success' && | ||
needs.olm-bundle.result == 'success' && | ||
github.repository_owner == 'cloudnative-pg' | ||
needs.olm-bundle.result == 'success' | ||
env: | ||
VERSION: ${{ needs.release-binaries.outputs.version }} | ||
runs-on: ubuntu-22.04 | ||
|
@@ -420,10 +414,3 @@ jobs: | |
git add bundles/${{ env.VERSION }} | ||
git commit -sm "${COMMIT_MESSAGE}" | ||
- | ||
name: Push commit | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.REPO_GHA_PAT }} | ||
repository: cloudnative-pg/artifacts | ||
branch: "main" |