Generate bp_single_file #244
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 bp_single_file | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
run_python_script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Execute Python script | |
run: | | |
python docs/write_BuildingPy.py | |
- name: Commit and push if changes | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git status | |
git add BuildingPy.py | |
git commit -m "Automatically updated BuildingPy.py" || true | |
git push |