Skip to content

update data

update data #192

Workflow file for this run

name: update data
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * SAT"
jobs:
update-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: npm
- name: install dependencies
run: npm ci
- name: update data
run: ./do update-data
- name: create PR
run: |
if git diff --exit-code; then
exit 0;
fi
git checkout -b update-data
git config --global user.name 'Jan Sepke'
git config --global user.email '[email protected]'
git commit -am "update data"
git push -u origin update-data:update-data
pr_url=$(gh pr create --title 'update data' --body 'Created by Github action')
echo "$pr_url"
gh pr merge --auto --rebase "$pr_url"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}