Skip to content

Commit

Permalink
Ensure curl calls follow redirects. (#85)
Browse files Browse the repository at this point in the history
Signed-off-by: M. J. Fromberger <[email protected]>
  • Loading branch information
creachadair authored Aug 25, 2023
1 parent 65cdd9a commit 4e4c49a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e4c49a

Please sign in to comment.