cached-git-lfs-pull/action.yml
dependabot[bot] caa6eb6983
chore(deps): bump actions/cache from 2 to 3 (#3)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-07 18:02:54 +01:00

28 lines
610 B
YAML

name: Git lfs pull using github action cache
description: This action is used to do git pull LFS leveraging github action cache
branding:
icon: "download"
color: "purple"
runs:
using: "composite"
steps:
- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
shell: bash
- name: Restore LFS cache
uses: actions/cache@v3
id: lfs-cache
with:
path: .git/lfs
key: lfs-${{ hashFiles('.lfs-assets-id') }}
restore-keys: |
lfs-
- name: Git LFS Pull
run: git lfs pull
shell: bash