forked from elementary-data/elementary-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 793 Bytes
/
generate-data.yml
File metadata and controls
36 lines (29 loc) · 793 Bytes
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
34
35
36
name: Generate data
on:
schedule:
- cron: "0 */8 * * *"
workflow_dispatch:
jobs:
generate-data:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Initial config
run: |
git config user.name "GitHub Actions"
git config user.email noreply@github.com
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.7.5"
- name: Install elementary tutorial repo
run: |
pip install -e.
- name: Generate data
run: |
elementary-tutorial generate-tutorial-data
- name: Commit changes
run: git commit -am "Generated new data for the tutorial"
- name: Push code
run: git push