Skip to content

Commit 37042bd

Browse files
committed
Merge tag 'v3.4.1' into development
2 parents c873c51 + 31afd71 commit 37042bd

27 files changed

Lines changed: 721 additions & 248 deletions
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: download and cache git repo
2+
description: this simply dumps it in the current directory...
3+
inputs:
4+
name:
5+
required: true
6+
url:
7+
required: true
8+
rev:
9+
default: ''
10+
tag:
11+
default: ''
12+
13+
runs:
14+
using: "composite"
15+
steps:
16+
- name: setup cache
17+
id: cache
18+
uses: actions/cache@v5
19+
with:
20+
path: ${{inputs.name}}
21+
key: ${{inputs.url}}@${{inputs.rev}}${{inputs.tag}}
22+
23+
- name: download rev
24+
if: steps.cache.outputs.cache-hit != 'true' && inputs.rev != ''
25+
shell: bash
26+
run: |
27+
mkdir ${{inputs.name}}
28+
cd ${{inputs.name}}
29+
git init
30+
git remote add origin ${{inputs.url}}
31+
git fetch --depth 1 origin ${{inputs.rev}}
32+
git checkout ${{inputs.rev}}
33+
git submodule update --init --recursive
34+
35+
- name: download tag
36+
if: steps.cache.outputs.cache-hit != 'true' && inputs.tag != ''
37+
shell: bash
38+
run: |
39+
git clone --branch ${{inputs.tag}} --depth 1 ${{inputs.url}} ${{inputs.name}}
40+
cd ${{inputs.name}}
41+
git submodule update --init --recursive

0 commit comments

Comments
 (0)