mathiasbynens / covid-19-vaccinations-germany

Historical data on COVID-19 vaccination doses administered in Germany, per state.
https://mathiasbynens.github.io/covid-19-vaccinations-germany/
MIT License
52 stars 10 forks source link

curl in GitHub Action somehow stopped working #4

Closed mathiasbynens closed 3 years ago

mathiasbynens commented 3 years ago

Run 186 was successful:

https://github.com/mathiasbynens/covid-19-vaccinations-germany/runs/1743778016#step:6:1

Run 187 wasn't:

https://github.com/mathiasbynens/covid-19-vaccinations-germany/runs/1744241887#step:6:1

For some reason, curl produces no output anymore, and also doesn’t actually download + save the file. This is why auto-updating failed today.

mathiasbynens commented 3 years ago

One difference I've found:

Current runner version: '2.275.1' (run 186 = good)
Current runner version: '2.276.0' (run 187 = bad)

Could it be that the runner is somehow broken?

mathiasbynens commented 3 years ago

Aha! Removing the --silent flag reveals that curl now fails because of this:

Warning: Failed to open /dev/stdout
mathiasbynens commented 3 years ago

Instead of explicitly using

curl --dump-header /dev/stdout …

we’re now using

curl --dump-header - …

…which works even in the apparently updated GitHub Actions environment.