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.
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 localindex.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 correctHTTP 404
status.