From 8e129ed8074e2e5741141853f441ad1fae972443 Mon Sep 17 00:00:00 2001 From: Juan Bustamante Date: Thu, 1 Feb 2024 11:32:41 -0500 Subject: [PATCH] Excluding pre-release from check latest pack release workflow Signed-off-by: Juan Bustamante --- .github/workflows/check-latest-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-latest-release.yml b/.github/workflows/check-latest-release.yml index 36679effdd..56e577c9fb 100644 --- a/.github/workflows/check-latest-release.yml +++ b/.github/workflows/check-latest-release.yml @@ -25,7 +25,7 @@ jobs: LATEST_GO_VERSION=$(go version | cut -d ' ' -f 3) - LATEST_RELEASE_VERSION=$(gh release list -L 1 | cut -d $'\t' -f 1 | cut -d ' ' -f 2) + LATEST_RELEASE_VERSION=$(gh release list --exclude-drafts --exclude-pre-releases -L 1 | cut -d $'\t' -f 1 | cut -d ' ' -f 2) wget https://github.com/$GITHUB_REPOSITORY/releases/download/$LATEST_RELEASE_VERSION/pack-$LATEST_RELEASE_VERSION-linux.tgz -O out.tgz tar xzf out.tgz