-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.11 KB
/
update.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
47
48
49
50
name: Data Update
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * SUN'
permissions:
contents: write
concurrency: one
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: martinheidegger/cache@v3.0.5
with:
path: |
cache
state
key: cache
always-save: true
- run: |
git clone -b gh-pages https://github.com/dat-ecosystem/dat-garden-rake.git out --depth=1
rm -rf out/.git
- run: npm i
- continue-on-error: true
run: du -hc -d 0 cache
- continue-on-error: true
timeout-minutes: 350
run: |
node bin/dat-garden-rake \
--max-depth=20 \
--github=${{ secrets.GH_TOKEN }} \
--gitlab=${{ secrets.GL_TOKEN }}
- continue-on-error: true
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
git-config-name: Dat Ecosystem (gh-actions)
git-config-email: dat-ecosystem@protonmail.com
branch: gh-pages
folder: out