From c688cd1540188ec187964b96578a776c71b98136 Mon Sep 17 00:00:00 2001 From: Lee Briggs Date: Sun, 7 Jul 2024 09:50:18 -0700 Subject: [PATCH] Revert "don't lookup latest version" This reverts commit 0eefde4707b1200556ed6db619fd2d209d3bad3d. --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index 6231539..1bfc41a 100644 --- a/action.yml +++ b/action.yml @@ -62,6 +62,10 @@ runs: VERSION: ${{ inputs.version }} SHA256SUM: ${{ inputs.sha256sum }} run: | + if [ "$VERSION" = "latest" ]; then + VERSION=$(curl -s https://pkgs.tailscale.com/stable/ | grep -o 'value="[0-9.]*"' | sed 's/value="//;s/"//' | sort -V | tail -n 1) + echo "Latest Tailscale version: $VERSION" + fi if [ ${{ runner.arch }} = "ARM64" ]; then TS_ARCH="arm64" elif [ ${{ runner.arch }} = "ARM" ]; then