Skip to content

Commit 9ff1361

Browse files
author
cx-Margarita-LevitM
committed
revert changes
1 parent 04cc64a commit 9ff1361

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,10 @@ jobs:
9393
- name: Check if CLI version is latest
9494
id: check_latest_cli_version
9595
run: |
96-
# if [ "${{ inputs.dev }}" == "false" ] || [ -n "${{ inputs.cliTag }}" ] || [ "${{ github.ref }}" != "refs/heads/main" ]; then
97-
# exit 0
98-
# fi
96+
if [ "${{ inputs.dev }}" == "false" ] || [ -n "${{ inputs.cliTag }}" ] || [ "${{ github.ref }}" != "refs/heads/main" ]; then
97+
exit 0
98+
fi
9999
100-
# API_RESPONSE=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/Checkmarx/ast-cli/releases/latest)
101-
# LATEST_CLI_VERSION=$(echo "$API_RESPONSE" | grep -o '"tag_name"[[:space:]]*:[[:space:]]*"[^"]*"' | sed 's/"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)"/\1/' | sed 's/^v//')
102100
LATEST_CLI_VERSION=$(curl -s https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
103101
if [ "$CLI_VERSION" = "$LATEST_CLI_VERSION" ]; then
104102
echo "Confirm that the CLI version in the repository is up-to-date with the most recent release: $CLI_VERSION"

0 commit comments

Comments
 (0)