-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
31 lines (31 loc) · 1015 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: "Clone SEE"
description: "Clones SEE, including LFS."
inputs:
fetch-depth:
description: "How many prior commits to retrieve. Set to 0 to retrieve full history."
required: true
default: "1"
lfs-token:
description: "Token for the GitLab LFS repository."
required: true
runs:
using: "composite"
steps:
- name: Setup GitLab LFS
shell: bash
run: |
echo "$CREDENTIALS" > ~/.git-credentials
git config --global credential.helper store || true
git config --global lfs.url "${CREDENTIALS}project-see/see-lfs.git/info/lfs" || true
env:
# NOTE: must be of the form https://koschke:[email protected]/
CREDENTIALS: ${{ inputs.lfs-token }}
- uses: actions/checkout@v4
name: Checkout Repository
with:
lfs: true
fetch-depth: ${{ inputs.fetch-depth }}
clean: ${{ github.ref == 'refs/heads/master' }}
- name: Confirm LFS pull
shell: bash
run: git lfs pull