diff --git a/catalog/snippets/workflows/build-release-task.yml b/catalog/snippets/workflows/build-release-task.yml index 4f1f7759..cf1159d7 100644 --- a/catalog/snippets/workflows/build-release-task.yml +++ b/catalog/snippets/workflows/build-release-task.yml @@ -253,6 +253,7 @@ jobs: ids="" fi for id in $ids; do - gh api --method DELETE "repos/$GITHUB_REPOSITORY/actions/artifacts/$id" \ - || echo "::warning::Failed to delete artifact $id; retention-days backstop will reap it." + if ! gh api --method DELETE "repos/$GITHUB_REPOSITORY/actions/artifacts/$id"; then + echo "::warning::Failed to delete artifact $id; retention-days backstop will reap it." + fi done