Skip to content

Commit cedad3f

Browse files
Update update-cli.yml (AST-48101) (#347)
* Update update-cli.yml * Update update-cli.yml to Track lfs after Download latest cli
1 parent f80145c commit cedad3f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/update-cli.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,15 @@ jobs:
3939
# Update current release
4040
echo ${{ steps.checkmarx-ast-cli.outputs.release_tag }} > checkmarx-ast-cli.version
4141
42+
- name: Download latest cli and update branch
43+
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
44+
run: |
45+
# Update binaries
46+
chmod +x ./.github/scripts/update_cli.sh
47+
./.github/scripts/update_cli.sh ${{ steps.checkmarx-ast-cli.outputs.release_tag }}
48+
4249
- name: Track large files with Git LFS
50+
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
4351
run: |
4452
git lfs track "src/main/resources/cx-linux"
4553
git lfs track "src/main/resources/cx.exe"
@@ -48,13 +56,6 @@ jobs:
4856
git add src/main/resources/cx-linux src/main/resources/cx.exe src/main/resources/cx-mac
4957
git commit -m "Track Checkmarx CLI binaries with Git LFS"
5058
51-
- name: Download latest cli and update branch
52-
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
53-
run: |
54-
# Update binaries
55-
chmod +x ./.github/scripts/update_cli.sh
56-
./.github/scripts/update_cli.sh ${{ steps.checkmarx-ast-cli.outputs.release_tag }}
57-
5859
- name: Create Pull Request
5960
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
6061
uses: peter-evans/create-pull-request@v6

0 commit comments

Comments
 (0)