Data Update #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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/[email protected] | |
with: | |
git-config-name: Dat Ecosystem (gh-actions) | |
git-config-email: [email protected] | |
branch: gh-pages | |
folder: out | |