Skip to content

update

update #214

Workflow file for this run

name: update
on:
schedule:
- cron: "45 4 * * 0"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
- run: make deps
- run: make data
- run: |
if [[ $(git status --porcelain --untracked-files=no) ]]; then
make test
git fetch --unshallow --quiet --tags
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "automated data update"
make patch
else
echo "Nothing to commit"
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}