Update Snapshot Versions #860
This file contains hidden or 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: Update Snapshot Versions | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 * * * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3.10.7 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.10.7 | |
| - name: Install Packages | |
| run: pip install -r requirements.txt | |
| - name: Execute program | |
| run: | | |
| export PYTHONPATH="$PYTHONPATH:$PWD" | |
| python src/app.py snapshot | |
| id: execute-program | |
| - name: Commit changes | |
| uses: EndBug/add-and-commit@v9 | |
| with: | |
| author_name: automation | |
| author_email: action@github.com | |
| message: 'Update snapshot.json: Added Versions: ${{ steps.execute-program.outputs.ADDED_VERSIONS }}' | |
| add: 'snapshot.json' |