Skip to content

Commit

Permalink
add Git LFS Cache action
Browse files Browse the repository at this point in the history
  • Loading branch information
legnoh committed Feb 7, 2025
1 parent 302f466 commit ff088b1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
lfs: true

- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id

- name: Restore LFS cache
uses: actions/cache@v4
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1

- name: Git LFS Pull
run: git lfs pull

- name: Check Project Node version
id: check-node-version
Expand Down

2 comments on commit ff088b1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://legwiki.lkj.io as production
πŸš€ Deployed on https://67a6171342c87a11fa00bd89--legwiki.netlify.app

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸŽ‰ Published on https://legwiki.lkj.io as production
πŸš€ Deployed on https://67a6188c42c87a148300c04c--legwiki.netlify.app

Please sign in to comment.