mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Cache LFS.
This commit is contained in:
21
.github/actions/lfs/action.yml
vendored
Normal file
21
.github/actions/lfs/action.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
name: LFS pull
|
||||
description: Cached LFS pull.
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Create LFS file list
|
||||
shell: bash
|
||||
run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id
|
||||
|
||||
- name: Restore LFS cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: .git/lfs/objects
|
||||
key: lfs-${{ hashFiles('.lfs-assets-id') }}
|
||||
restore-keys: lfs-
|
||||
enableCrossOsArchive: true
|
||||
|
||||
- name: Git LFS Pull
|
||||
shell: bash
|
||||
run: git lfs pull
|
||||
Reference in New Issue
Block a user