From 47f806387f8f988c88b179d60d2c0e9519f3c348 Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Tue, 23 Dec 2025 12:10:49 +0100 Subject: [PATCH 1/5] debug --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index ed8236e..b269be7 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,10 @@ #!/bin/bash set -euo pipefail +if [ "$ACTIONS_STEP_DEBUG" = "true" ]; then + set -x +fi + VERSION="${1:-latest}" # Detect OS @@ -50,6 +54,9 @@ esac if [ "$VERSION" = "latest" ]; then echo "Fetching latest version..." # Use a more portable method to extract tag_name from JSON + curl -sSL -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/runs-on/cli/releases/latest | \ + grep '"tag_name"' | sed 's/.*"tag_name": *"\([^"]*\)".*/\1/' | head -1 VERSION=$(curl -sSL -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/runs-on/cli/releases/latest | \ grep '"tag_name"' | sed 's/.*"tag_name": *"\([^"]*\)".*/\1/' | head -1) From d1ec57d850fe1ca85263cc974970ea46c8e8d541 Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Tue, 23 Dec 2025 12:11:56 +0100 Subject: [PATCH 2/5] fix --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b269be7..f45ace6 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/bash set -euo pipefail -if [ "$ACTIONS_STEP_DEBUG" = "true" ]; then +if [ "${ACTIONS_STEP_DEBUG:-}" = "true" ]; then set -x fi From fff435761eef051350c9ba0a5a34f13fb1d9e9fd Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Tue, 23 Dec 2025 12:13:45 +0100 Subject: [PATCH 3/5] fix --- install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install.sh b/install.sh index f45ace6..4d8c6e5 100755 --- a/install.sh +++ b/install.sh @@ -1,9 +1,7 @@ #!/bin/bash set -euo pipefail -if [ "${ACTIONS_STEP_DEBUG:-}" = "true" ]; then - set -x -fi +set -x VERSION="${1:-latest}" From a678700b4fe37ff00cb9430e9913d7cef0ce5465 Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Tue, 23 Dec 2025 12:14:57 +0100 Subject: [PATCH 4/5] fix --- install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 4d8c6e5..67f0411 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,6 @@ #!/bin/bash set -euo pipefail - -set -x +# set -x VERSION="${1:-latest}" From c9217f30d7adcd12fe5edad72a0a82d5a9575db0 Mon Sep 17 00:00:00 2001 From: Cyril Rohr Date: Tue, 23 Dec 2025 12:16:02 +0100 Subject: [PATCH 5/5] fix --- install.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/install.sh b/install.sh index 67f0411..b14b8f5 100755 --- a/install.sh +++ b/install.sh @@ -51,9 +51,6 @@ esac if [ "$VERSION" = "latest" ]; then echo "Fetching latest version..." # Use a more portable method to extract tag_name from JSON - curl -sSL -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/runs-on/cli/releases/latest | \ - grep '"tag_name"' | sed 's/.*"tag_name": *"\([^"]*\)".*/\1/' | head -1 VERSION=$(curl -sSL -H "Accept: application/vnd.github.v3+json" \ https://api.github.com/repos/runs-on/cli/releases/latest | \ grep '"tag_name"' | sed 's/.*"tag_name": *"\([^"]*\)".*/\1/' | head -1)