Skip to content

Commit cd08508

Browse files
authored
inputs: Add ref to be able to select another branch when needed (#11)
1 parent 02a7be5 commit cd08508

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Is has the following inputs:
1717

1818
- `type`: should be `producer` or `consumer`, default to `producer`
1919
- `repository`: the git repository to produce LFS data from, default: ${{ github.repository }}
20+
- `ref`: the branch, tag or SHA to checkout to look for LFS data in, default: `''`
2021
- `lfs_sha`: The git sha to recover LFS data from, optional
2122
- `cache_postfix`: An postfix added to the cache name, to support multiple caches, default to `cache`
2223
- `target_directory`: A target directory to copy LFS data to

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ inputs:
1111
description: 'Repository to recover LFS data from'
1212
required: false
1313
default: ${{ github.repository }}
14+
ref:
15+
description: 'branch, tag or SHA to checkout and look for LFS data in'
16+
required: false
17+
default: ''
1418
lfs_sha:
1519
description: 'LFS sha to recover. If not set, target directory will be used to recover it.'
1620
required: false
@@ -43,6 +47,7 @@ runs:
4347
if: inputs.lfs_sha == ''
4448
uses: actions/checkout@v4
4549
with:
50+
ref: ${{ inputs.ref }}
4651
repository: ${{ inputs.repository }}
4752
path: 'lfs_data_cache/lfs_source'
4853
fetch-depth: 0

0 commit comments

Comments
 (0)