From a95415d687c14339349b09d70d7316caa69b8553 Mon Sep 17 00:00:00 2001 From: Weston Blieden <111699155+Mo3he@users.noreply.github.com> Date: Thu, 28 Aug 2025 12:04:18 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0277fff..77d59ab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,11 +32,17 @@ jobs: echo "CURRENT_VERSION=$CURRENT" >> $GITHUB_ENV echo "Current repo version: $CURRENT" - - name: Skip if no new version - if: env.RELEASE_VERSION == env.CURRENT_VERSION + - name: Compare versions and decide whether to build run: | - echo "No new Tailscale release. Skipping build." - exit 0 + echo "Repo version: $CURRENT_VERSION" + echo "Latest Tailscale version: $RELEASE_VERSION" + + if [ "$CURRENT_VERSION" = "$RELEASE_VERSION" ]; then + echo "✅ Already up to date with Tailscale $RELEASE_VERSION, skipping build." + exit 0 + else + echo "⬆️ New version detected: $RELEASE_VERSION (was $CURRENT_VERSION). Proceeding with build..." + fi # 3. Download Tailscale binaries - name: Download Tailscale binaries