Skip to content

Commit

Permalink
Fix condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsauter committed Dec 14, 2023
1 parent 82a5e7b commit 441d4aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ spec:
if [ "${status_code}" = "404" ]; then
curl ${curl_args} --upload-file $(params.input) ${artifact_url}
else
if [ "$(params.policy)" = "SkipIfPresent"" ]; then
if [ "$(params.policy)" = "SkipIfPresent" ]; then
echo "WARN: skippig upload as check for ${artifact_url} returned ${status_code}, expected 404"
elif [ "$(params.policy)" = "ErrorIfPresent"" ]; then
elif [ "$(params.policy)" = "ErrorIfPresent" ]; then
echo "ERROR: check for ${artifact_url} returned ${status_code}, expected 404"
exit 1
else
Expand Down

0 comments on commit 441d4aa

Please sign in to comment.