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 4
4
workflow_dispatch :
5
5
inputs :
6
6
new_cli_version :
7
- description : ' New CLI version'
7
+ description : ' New CLI version (optional) '
8
8
required : false
9
9
schedule :
10
10
- cron : ' 0 0 * * *'
20
20
- name : Get Latest Checkmarx API version
21
21
id : checkmarx-ast-cli
22
22
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
24
28
CURRENT_VERSION=$(<checkmarx-ast-cli.version)
25
29
echo ::set-output name=release_tag::$LATEST_VERSION
26
30
echo ::set-output name=current_tag::$CURRENT_VERSION
You can’t perform that action at this time.
0 commit comments