.github/workflows/refresh.yml #3920
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
on: | |
schedule: | |
- cron: '0 0 29 2 1' | |
jobs: | |
job1: | |
runs-on: ubuntu-latest | |
container: thohan88/covid19-nor-data | |
steps: | |
- uses: actions/checkout@master | |
- name: Create local changes | |
env: | |
HDIR_API_KEY: ${{ secrets.HDIR_API_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
Rscript -e 'source("code/refresh_files.R")' | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Scheduled data update" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |