Generate data #2206
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
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 [email protected] | |
- 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 |