Skip to content

Commit 99717e9

Browse files
author
elchananarb
committed
Update update-cli.yml
1 parent a67165d commit 99717e9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/update-cli.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,45 @@ jobs:
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

0 commit comments

Comments
 (0)