-
-
Notifications
You must be signed in to change notification settings - Fork 376
33 lines (32 loc) · 880 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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