Skip to content

Commit 21488e0

Browse files
check cli version only when not dev or cli tag empty
1 parent 5c10fbe commit 21488e0

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
@@ -60,7 +60,7 @@ jobs:
6060
echo "::set-output name=CLI_VERSION::$CLI_VERSION"
6161
6262
- name: Check if CLI version is latest
63-
if: ${{ github.event.inputs.dev == 'false' }}
63+
if: ${{ github.event.inputs.dev == 'false' && !github.event.inputs.cliTag && github.ref == 'refs/heads/main' }}
6464
id: check_latest_cli_version
6565
run: |
6666
LATEST_CLI_VERSION=$(curl -s https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')

0 commit comments

Comments
 (0)