Skip to content

.github/workflows/refresh.yml #3920

.github/workflows/refresh.yml

.github/workflows/refresh.yml #3920

Workflow file for this run

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 }}