Add -f flag to curl for HTTP error handling

Ensures that the command fails when an HTTP error (e.g., 404) occurs.
This commit is contained in:
Kohei Watanabe 2024-12-25 20:05:16 +09:00
parent b5ade6192c
commit eb6e4ccca4
No known key found for this signature in database
GPG key ID: 79807D08C6EF6460

View file

@ -33,8 +33,8 @@ jobs:
- name: Run script/update-cruby
run: |
curl -sL https://cache.ruby-lang.org/pub/ruby/${{ env.ABI_VERSION }}/ruby-${{ env.RUBY_VERSION }}.tar.gz -O
curl -sL https://www.openssl.org/source/openssl-${{ env.OPENSSL_VERSION }}.tar.gz -O
curl -fsL https://cache.ruby-lang.org/pub/ruby/${{ env.ABI_VERSION }}/ruby-${{ env.RUBY_VERSION }}.tar.gz -O
curl -fsL https://www.openssl.org/source/openssl-${{ env.OPENSSL_VERSION }}.tar.gz -O
script/update-cruby ${{ env.RUBY_VERSION }} ${{ env.OPENSSL_VERSION }} .
rm *.gz