Use github action that caches LFS files when checking out the repo (#647)

Uses https://github.com/nschloe/action-cached-lfs-checkout where we're using git-lfs.

This is a wrapper around `actions/checkout@v3` which uses `actions/cache@v3` to cache the files on LFS to avoid downloading them every time and spare LFS bandwidth.
This commit is contained in:
Marco Romano 2023-06-21 11:12:47 +02:00 committed by GitHub
parent f38f1487c5
commit 6a39b8d242
4 changed files with 4 additions and 10 deletions

View file

@ -22,12 +22,11 @@ jobs:
cancel-in-progress: true
steps:
- name: ⏬ Checkout with LFS
uses: actions/checkout@v3
uses: nschloe/action-cached-lfs-checkout@v1.2.1
with:
# Ensure we are building the branch and not the branch after being merged on develop
# https://github.com/actions/checkout/issues/881
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
lfs: 'true'
- name: ☕️ Use JDK 17
uses: actions/setup-java@v3
with: