mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 00:33:57 +08:00
Add Git-LFS example
This commit is contained in:
parent
b8204782bb
commit
28e1bb6b1c
1 changed files with 15 additions and 0 deletions
15
examples.md
15
examples.md
|
@ -4,6 +4,7 @@
|
|||
- [C# - NuGet](#c---nuget)
|
||||
- [D - DUB](#d---dub)
|
||||
- [Elixir - Mix](#elixir---mix)
|
||||
- [Git - Large File System](#git---large-file-system)
|
||||
- [Go - Modules](#go---modules)
|
||||
- [Haskell - Cabal](#haskell---cabal)
|
||||
- [Java - Gradle](#java---gradle)
|
||||
|
@ -104,6 +105,20 @@ steps:
|
|||
${{ runner.os }}-mix-
|
||||
```
|
||||
|
||||
## Git - Large File System
|
||||
|
||||
```yaml
|
||||
- uses: actions/checkout@v2
|
||||
- name: Get cache key of git-lfs files
|
||||
id: git-lfs
|
||||
run: echo "::set-output name=sha256::$(git lfs ls-files | openssl dgst -sha256)"
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: .git/lfs
|
||||
key: ${{ steps.git-lfs.outputs.sha256 }}
|
||||
- run: git lfs pull
|
||||
```
|
||||
|
||||
## Go - Modules
|
||||
|
||||
```yaml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue