File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 - uses : actions/checkout@v4
12+ with :
13+ lfs : true
14+
15+ - name : Install Git LFS
16+ run : |
17+ sudo apt-get update
18+ sudo apt-get install git-lfs
19+ git lfs install
20+
1221 - name : Get Latest Checkmarx API version
1322 id : checkmarx-ast-cli
1423 run : |
1524 echo ::set-output name=release_tag::$(curl -sL https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | jq -r ".tag_name")
1625 echo ::set-output name=current_tag::$(<checkmarx-ast-cli.version)
26+
1727 - name : Update Checkmarx cli version
1828 if : steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
1929 env :
2030 RELEASE_TAG : ${{ steps.checkmarx-ast-cli.outputs.release_tag }}
2131 run : |
2232 # Update current release
2333 echo ${{ steps.checkmarx-ast-cli.outputs.release_tag }} > checkmarx-ast-cli.version
34+
35+ - name : Track large files with Git LFS
36+ run : |
37+ git lfs track "src/main/resources/cx-linux"
38+ git lfs track "src/main/resources/cx.exe"
39+ git lfs track "src/main/resources/cx-mac"
40+ git add .gitattributes
41+ git add src/main/resources/cx-linux src/main/resources/cx.exe src/main/resources/cx-mac
42+ git commit -m "Track Checkmarx CLI binaries with Git LFS"
43+
2444 - name : Download latest cli and update branch
2545 if : steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
2646 run : |
2747 # Update binaries
2848 chmod +x ./.github/scripts/update_cli.sh
2949 ./.github/scripts/update_cli.sh ${{ steps.checkmarx-ast-cli.outputs.release_tag }}
50+
3051 - name : Create Pull Request
3152 if : steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
3253 uses : peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
You can’t perform that action at this time.
0 commit comments