From 59972b391d2b488f122d484ce2023a2610e8d0b2 Mon Sep 17 00:00:00 2001 From: elchananarb Date: Sun, 28 Jul 2024 09:59:16 +0300 Subject: [PATCH 1/2] Update update-cli.yml --- .github/workflows/update-cli.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-cli.yml b/.github/workflows/update-cli.yml index e1f6cc1a..f7163515 100644 --- a/.github/workflows/update-cli.yml +++ b/.github/workflows/update-cli.yml @@ -40,6 +40,7 @@ jobs: echo ${{ steps.checkmarx-ast-cli.outputs.release_tag }} > checkmarx-ast-cli.version - name: Track large files with Git LFS + if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag run: | git lfs track "src/main/resources/cx-linux" git lfs track "src/main/resources/cx.exe" From 64c429fa65c1998fdee3fde57d804848b6c1dfd8 Mon Sep 17 00:00:00 2001 From: elchananarb Date: Sun, 28 Jul 2024 10:29:31 +0300 Subject: [PATCH 2/2] Update update-cli.yml to Track lfs after Download latest cli --- .github/workflows/update-cli.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update-cli.yml b/.github/workflows/update-cli.yml index f7163515..fd23a931 100644 --- a/.github/workflows/update-cli.yml +++ b/.github/workflows/update-cli.yml @@ -39,6 +39,13 @@ jobs: # Update current release echo ${{ steps.checkmarx-ast-cli.outputs.release_tag }} > checkmarx-ast-cli.version + - name: Download latest cli and update branch + if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag + run: | + # Update binaries + chmod +x ./.github/scripts/update_cli.sh + ./.github/scripts/update_cli.sh ${{ steps.checkmarx-ast-cli.outputs.release_tag }} + - name: Track large files with Git LFS if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag run: | @@ -49,13 +56,6 @@ jobs: git add src/main/resources/cx-linux src/main/resources/cx.exe src/main/resources/cx-mac git commit -m "Track Checkmarx CLI binaries with Git LFS" - - name: Download latest cli and update branch - if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag - run: | - # Update binaries - chmod +x ./.github/scripts/update_cli.sh - ./.github/scripts/update_cli.sh ${{ steps.checkmarx-ast-cli.outputs.release_tag }} - - name: Create Pull Request if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag uses: peter-evans/create-pull-request@v6