Skip to content

Commit 9403428

Browse files
committed
make sure to get example from release
1 parent 52aa535 commit 9403428

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/update-tutos.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ jobs:
1818
with:
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020

21-
- name: Clone external repo
21+
- name: Clone lastest release of devito to update examples
2222
run: |
23-
git clone https://github.com/devitocodes/devito
23+
REPO="devitocodes/devito"
24+
TAG=$(curl -s "https://api.github.com/repos/${REPO}/releases/latest" | jq -r .tag_name)
25+
git clone --branch "$TAG" --depth=1 "https://github.com/${REPO}.git"
26+
2427
2528
- name: Update only existing files in local
2629
run: |

0 commit comments

Comments
 (0)