Skip to content

Commit c7fc043

Browse files
committed
Support unstable version alias
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
1 parent fd56428 commit c7fc043

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ inputs:
2121
description: 'Comma separated list of Tags to be applied to nodes. The OAuth client must have permission to apply these tags.'
2222
required: false
2323
version:
24-
description: 'Tailscale version to use. Specify `latest` to use the latest stable version.'
24+
description: 'Tailscale version to use. Specify `latest` to use the latest stable version, and `unstable` to use the latest unstable version.'
2525
required: true
2626
default: '1.82.0'
2727
sha256sum:
@@ -78,6 +78,8 @@ runs:
7878
VERSION=${{ inputs.version }}
7979
if [ "$VERSION" = "latest" ]; then
8080
RESOLVED_VERSION=$(curl -H user-agent:tailscale-github-action -s "https://pkgs.tailscale.com/stable/?mode=json" | jq -r .Version)
81+
elif [ "$VERSION" = "unstable" ]; then
82+
RESOLVED_VERSION=$(curl -H user-agent:tailscale-github-action -s "https://pkgs.tailscale.com/unstable/?mode=json" | jq -r .Version)
8183
else
8284
RESOLVED_VERSION=$VERSION
8385
fi

0 commit comments

Comments
 (0)