File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch :
55 inputs :
66 new_cli_version :
7- description : ' New CLI version'
7+ description : ' New CLI version (optional) '
88 required : false
99 schedule :
1010 - cron : ' 0 0 * * *'
2020 - name : Get Latest Checkmarx API version
2121 id : checkmarx-ast-cli
2222 run : |
23- LATEST_VERSION=$(curl -sL https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | jq -r ".tag_name")
23+ if [ "${{ github.event.inputs.new_cli_version }}" ]; then
24+ LATEST_VERSION=${{ github.event.inputs.new_cli_version }}
25+ else
26+ LATEST_VERSION=$(curl -sL https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | jq -r ".tag_name")
27+ fi
2428 CURRENT_VERSION=$(<checkmarx-ast-cli.version)
2529 echo ::set-output name=release_tag::$LATEST_VERSION
2630 echo ::set-output name=current_tag::$CURRENT_VERSION
You can’t perform that action at this time.
0 commit comments