@@ -51,12 +51,6 @@ inputs:
5151runs :
5252 using : ' composite'
5353 steps :
54- - name : Check Runner OS
55- if : ${{ runner.os != 'Linux' }}
56- shell : bash
57- run : |
58- echo "::error title=⛔ error hint::Support Linux Only"
59- exit 1
6054 - name : Check Auth Info Empty
6155 if : ${{ inputs.authkey == '' && (inputs['oauth-secret'] == '' || inputs.tags == '') }}
6256 shell : bash
@@ -76,33 +70,31 @@ runs:
7670 fi
7771 if [ ${{ runner.arch }} = "ARM64" ]; then
7872 TS_ARCH="arm64"
79- elif [ ${{ runner.arch }} = "ARM" ]; then
80- TS_ARCH="arm"
8173 elif [ ${{ runner.arch }} = "X86" ]; then
82- TS_ARCH="386 "
74+ TS_ARCH="x86 "
8375 elif [ ${{ runner.arch }} = "X64" ]; then
8476 TS_ARCH="amd64"
8577 else
8678 TS_ARCH="amd64"
8779 fi
8880 MINOR=$(echo "$VERSION" | awk -F '.' {'print $2'})
8981 if [ $((MINOR % 2)) -eq 0 ]; then
90- URL="https://pkgs.tailscale.com/stable/tailscale_ ${VERSION}_ ${TS_ARCH}.tgz "
82+ URL="https://pkgs.tailscale.com/stable/tailscale-setup- ${VERSION}- ${TS_ARCH}.msi "
9183 else
92- URL="https://pkgs.tailscale.com/unstable/tailscale_ ${VERSION}_ ${TS_ARCH}.tgz "
84+ URL="https://pkgs.tailscale.com/unstable/tailscale-setup- ${VERSION}- ${TS_ARCH}.msi "
9385 fi
9486 echo "Downloading $URL"
95- curl -H user-agent:tailscale-github-action -L "$URL" -o tailscale.tgz --max-time 300 --fail
87+ curl -H user-agent:tailscale-github-action -L "$URL" -o tailscale.msi --max-time 300 --fail
9688 if ! [[ "$SHA256SUM" ]] ; then
9789 SHA256SUM="$(curl -H user-agent:tailscale-github-action -L "${URL}.sha256" --fail)"
9890 fi
9991 echo "Expected sha256: $SHA256SUM"
10092 echo "Actual sha256: $(sha256sum tailscale.tgz)"
101- echo "$SHA256SUM tailscale.tgz " | sha256sum -c
102- tar -C /tmp -xzf tailscale.tgz
103- rm tailscale.tgz
104- TSPATH=/tmp/tailscale_${VERSION}_${TS_ARCH}
105- sudo mv "${TSPATH}/tailscale" "${TSPATH}/tailscaled" /usr/bin
93+ echo "$SHA256SUM tailscale.msi " | sha256sum -c
94+ # tar -C /tmp -xzf tailscale.tgz
95+ rm tailscale.msi
96+ # TSPATH=/tmp/tailscale_${VERSION}_${TS_ARCH}
97+ # sudo mv "${TSPATH}/tailscale" "${TSPATH}/tailscaled" /usr/bin
10698 - name : Start Tailscale Daemon
10799 shell : bash
108100 env :
0 commit comments