-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
46 lines (46 loc) · 1.46 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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:token-here@gitlab.informatik.uni-bremen.de/
CREDENTIALS: ${{ inputs.lfs-token }}
- uses: actions/checkout@v4
name: Checkout Repository
with:
lfs: true
fetch-depth: ${{ inputs.fetch-depth }}
# It's fine to clean on master, wait time is less relevant there (and we should clean every once in a while).
clean: ${{ github.ref == 'refs/heads/master' }}
- name: Confirm LFS pull
shell: bash
run: git lfs pull
- uses: actions/cache@v4
name: Cache Library
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 11
with:
path: |
./Library
./Assets/Packages
./*.csproj
./*.sln
key: SEE-Tests-${{ hashFiles('./ProjectSettings/ProjectVersion.txt') }}
restore-keys: |
SEE-Tests
SEE