Generator #18928
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: Generator | |
on: | |
push: | |
branches: | |
- main | |
watch: | |
types: [started] | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install requirements | |
run: | | |
pip install -r requirements.txt | |
- name: Run Generator | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated | |
run: | | |
python generator/v2.py | |
- name: Commit & Push | |
uses: action-x/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
push-branch: 'output' | |
commit-message: 'Generate Json' | |
force-push: 'true' | |
name: github-actions[bot] | |
email: github-actions[bot]@noreply.github.com |