-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: don't fail the workflow if it already exists
- Loading branch information
1 parent
d0db172
commit 1a7ab54
Showing
1 changed file
with
11 additions
and
2 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 |
---|---|---|
|
@@ -31,10 +31,19 @@ jobs: | |
|
||
- name: Check if chart exists | ||
id: chartExists | ||
run: docker manifest inspect ghcr.io/henrywhitaker3/prompage-helm:${{ env.CHART_VERSION }} | ||
run: | | ||
set +e | ||
docker manifest inspect ghcr.io/henrywhitaker3/prompage-helm:${{ env.CHART_VERSION }} | ||
rc=$? | ||
set -e | ||
if [ $rc -eq 0 ]; then | ||
echo "::set-output name=CHART_EXISTS::'yes'" | ||
else | ||
echo "::set-output name=CHART_EXISTS::'no'" | ||
fi | ||
- name: Push chart | ||
if: failure() && steps.chartExists.outcome == 'failure' | ||
if: steps.chartExists.outputs.CHART_EXISTS == 'no' | ||
uses: appany/[email protected] | ||
with: | ||
name: prompage-helm | ||
|