-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (36 loc) · 911 Bytes
/
generator.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
34
35
36
37
38
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.12.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