mirror of
https://github.com/tailscale/github-action.git
synced 2026-08-20 10:49:23 +00:00
Ensure curl calls follow redirects. (#85)
Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
This commit is contained in:
parent
65cdd9a05d
commit
4e4c49acaa
1 changed files with 2 additions and 2 deletions
|
|
@ -80,9 +80,9 @@ runs:
|
|||
URL="https://pkgs.tailscale.com/unstable/tailscale_${VERSION}_${TS_ARCH}.tgz"
|
||||
fi
|
||||
if ! [[ "$SHA256SUM" ]] ; then
|
||||
SHA256SUM="$(curl "${URL}.sha256")"
|
||||
SHA256SUM="$(curl -H user-agent:tailscale-github-action -L "${URL}.sha256")"
|
||||
fi
|
||||
curl "$URL" -o tailscale.tgz --max-time 300
|
||||
curl -H user-agent:tailscale-github-action -L "$URL" -o tailscale.tgz --max-time 300
|
||||
echo "$SHA256SUM tailscale.tgz" | sha256sum -c
|
||||
tar -C /tmp -xzf tailscale.tgz
|
||||
rm tailscale.tgz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue