Skip to content

Commit 53400ba

Browse files
committed
actions: Use latest as fallback version
GitHub workflows may experience intermittent issues curling the GH API. To avoid breaking the workflow entirely, falls back to using Go install @latest. This is an slower process, but at leads won't lead to failures. Signed-off-by: Paulo Gomes <[email protected]>
1 parent 48737d0 commit 53400ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/install-slsactl/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
set -x
4545
if [[ "${VERSION}" == "latest" ]]; then
4646
echo 'Checking what the latest version is'
47-
VERSION=$(curl -s 'https://api.github.com/repos/rancherlabs/slsactl/releases/latest' | jq -r '.tag_name')
47+
VERSION=$(curl -s 'https://api.github.com/repos/rancherlabs/slsactl/releases/latest' | jq -r '.tag_name' || echo 'latest')
4848
4949
echo "Using last tag ${VERSION} as version"
5050
fi

0 commit comments

Comments
 (0)