update data #939
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: update data | |
on: | |
schedule: | |
- cron: '0 6 * * *' | |
jobs: | |
update_data: | |
runs-on: ubuntu-latest | |
container: | |
image: kasiatemp/ng-update:daily | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
ref: 'main' | |
token: ${{ secrets.PAT }} | |
- name: Update data | |
run: | | |
bash ./data-raw/update-data.sh | |
- name: Commit files | |
run: | | |
git config --local user.name 'Kasia' | |
git config --local user.email '[email protected]' | |
git commit -m "Auto update of the daily data" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.PAT }} | |
branch: main |