From bf5e14e8ed9e05b947ef49eda83df60cf075d47e Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 25 Aug 2023 16:49:26 -0700 Subject: [PATCH] Ensure curl calls follow redirects. (#86) Signed-off-by: M. J. Fromberger --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 977582a..c591c77 100644 --- a/action.yml +++ b/action.yml @@ -29,7 +29,7 @@ runs: else URL="https://pkgs.tailscale.com/unstable/tailscale_${VERSION}_amd64.tgz" fi - curl $URL -o tailscale.tgz + curl -H user-agent:tailscale-github-action-v1 -L "$URL" -o tailscale.tgz tar -C ${HOME} -xzf tailscale.tgz rm tailscale.tgz TSPATH=${HOME}/tailscale_${VERSION}_amd64