Update summary.json #24
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 summary.json | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 */2 * *' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| ssh-key: ${{ secrets.DEPLOY }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Install dependencies | |
| run: pip install requests | |
| - name: Run script | |
| run: | | |
| python summary.py -u | |
| python summary.py -p | |
| - name: Commit and push if changed | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add summary.json summary-data.json | |
| if ! git diff-index --quiet HEAD; then | |
| git commit -m "Update summary.json" | |
| git push | |
| fi |