bakdata / ci-templates

Collection of reusable workflows and composite actions for Github
MIT License
4 stars 1 forks source link

Abort Helm release if GitHub pages file doesn't exist #41

Closed disrupted closed 1 year ago

disrupted commented 1 year ago

when a requested file doesn't exist on GitHub pages, it returns a HTTP 301 Moved response. We should fail the download and abort the workflow. Otherwise it downloads a file and overwrites local index.yaml or chart versions. Previously we only used the --fail option for curl, but additionally we have to follow the redirect (-L) to get the correct HTTP 404 status.