Skip to content

Commit ede146a

Browse files
Updated the grep cmd
1 parent a7cf3b9 commit ede146a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
- name: Check if CLI version is latest
106106
id: check_latest_cli_version
107107
run: |
108-
LATEST_CLI_VERSION=$(curl -s https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | grep '"tag":' | sed -E 's/.*"([^"]+)".*/\1/')
108+
LATEST_CLI_VERSION=$(curl -s https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
109109
echo "CLI_VERSION=[$CLI_VERSION]"
110110
echo "LATEST_CLI_VERSION=[$LATEST_CLI_VERSION]"
111111
echo "Latest CLI version from GitHub: $LATEST_CLI_VERSION"

0 commit comments

Comments
 (0)