mirror of
https://github.com/remotely-save/remotely-save.git
synced 2024-06-07 21:10:45 +00:00
enable git lfs cache to avoid billing according to https://github.com/actions/checkout/issues/165
This commit is contained in:
parent
2645ff34e6
commit
dc0c1db779
14
.github/workflows/auto-build.yml
vendored
14
.github/workflows/auto-build.yml
vendored
@ -29,10 +29,18 @@ jobs:
|
|||||||
- name: Checkout codes
|
- name: Checkout codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: true
|
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Checkout LFS
|
- name: Checkout LFS file list
|
||||||
run: git lfs checkout
|
run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id
|
||||||
|
- name: LFS Cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: .git/lfs/objects
|
||||||
|
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-lfs-
|
||||||
|
- name: Git LFS Pull
|
||||||
|
run: git lfs pull
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
|
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@ -32,10 +32,18 @@ jobs:
|
|||||||
- name: Checkout codes
|
- name: Checkout codes
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: true
|
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Checkout LFS
|
- name: Checkout LFS file list
|
||||||
run: git lfs checkout
|
run: git lfs ls-files --long | cut -d ' ' -f1 | sort > .lfs-assets-id
|
||||||
|
- name: LFS Cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: .git/lfs/objects
|
||||||
|
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-lfs-
|
||||||
|
- name: Git LFS Pull
|
||||||
|
run: git lfs pull
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user