Skip to content

Commit

Permalink
.github: Fail if print-chart-version.sh fails or does not exist
Browse files Browse the repository at this point in the history
Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
  • Loading branch information
chancez authored and michi-covalent committed Jun 9, 2023
1 parent 0b937c5 commit dbc2502
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/push-chart-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ jobs:
fetch-depth: 0
- id: get-version
run: |
echo "chart_version=$(./contrib/scripts/print-chart-version.sh)" | tee -a $GITHUB_OUTPUT
set -o pipefail
set -e
if [[ -f ./contrib/scripts/print-chart-version.sh ]]; then
echo "chart_version=$(./contrib/scripts/print-chart-version.sh)" | tee -a $GITHUB_OUTPUT
else
echo "./contrib/scripts/print-chart-version.sh missing. Perhaps it needs to be backported to your target branch?"
exit 1
fi
- name: Push charts
uses: cilium/reusable-workflows/.github/actions/push-helm-chart@6ae27958f2f37545bf48e44106b73df05b1f6d12 # v0.1.0
Expand Down

0 comments on commit dbc2502

Please sign in to comment.