.github/workflows/main.yml #8043
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: | |
workflow_dispatch: | |
schedule: | |
- cron: "15 0,2,4,8,12 * * *" | |
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 "Update json" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@v0.6.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
directory: main |