forked from tonkeeper/ton-assets
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 984 Bytes
/
rebuild-src.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
name: Rebuild autogenerated files on commit
on:
push:
paths:
- accounts/*
- collections/*
- jettons/*
- requirements.txt
- generator.py
- readme.md.template
- .github/workflows/rebuild-src.yml
branches:
- main
workflow_dispatch:
schedule:
- cron: '27 */3 * * *'
jobs:
run-aggregator:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install libraries
run: pip3 install -r requirements.txt
- name: Run generator.py
run: python3 generator.py
- name: commit and push if there are changes
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name "github-actions[bot]"
git config --global user.email "[email protected]"
git add -A
git commit -m 'Regenerate json and Readme'
git push
fi