We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 962ae6f commit 270ba6aCopy full SHA for 270ba6a
.github/workflows/release.yml
@@ -105,7 +105,7 @@ jobs:
105
- name: Check if CLI version is latest
106
id: check_latest_cli_version
107
run: |
108
- LATEST_CLI_VERSION=$(curl -s https://github.com/Checkmarx/ast-cli/releases/latest | grep -oP 'tag/\K[0-9]+\.[0-9]+\.[0-9]+')
+ LATEST_CLI_VERSION=$(curl -s https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
109
echo "CLI_VERSION=[$CLI_VERSION]"
110
echo "LATEST_CLI_VERSION=[$LATEST_CLI_VERSION]"
111
echo "Latest CLI version from GitHub: $LATEST_CLI_VERSION"
0 commit comments