Skip to content

Rebuild autogenerated files on commit #2582

Rebuild autogenerated files on commit

Rebuild autogenerated files on commit #2582

Workflow file for this run

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 * * * *'
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