Skip to content

Commit

Permalink
ci: don't fail the workflow if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Apr 20, 2024
1 parent d0db172 commit 1a7ab54
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a7ab54

Please sign in to comment.