Skip to content

.github/workflows/main.yml #1183

.github/workflows/main.yml

.github/workflows/main.yml #1183

Workflow file for this run

on:
schedule:
- cron: '15 0 * * *'
jobs:
extract_job:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: main
- name: Checkout data repo
uses: actions/checkout@v2
with:
repository: CSSEGISandData/COVID-19
path: data
- name: Hello world action step
uses: ./main/
id: hello
- name: Commit files
run: |
cd main
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD || git commit -m "Updated json" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
directory: main