Skip to content

update

update #394

Workflow file for this run

name: update
on:
schedule:
- cron: "45 3 * * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org
- run: make deps
- run: make update-data
- run: |
if [[ $(git status --porcelain --untracked-files=no) ]]; then
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 }}