Update Overview Deck #27
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 Overview Deck | |
| on: | |
| schedule: | |
| - cron: '0 0 5 * *' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Get current date | |
| id: date | |
| run: | | |
| echo "CURRENT_DATE=$(date +'%B %Y')" >> "$GITHUB_OUTPUT" | |
| - name: Checkout repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: true | |
| - name: Set up Python | |
| uses: actions/setup-python@2e3e4b15a884dc73a63f962bff250a855150a234 | |
| with: | |
| python-version: '3.x' | |
| pip-install: -r .github/workflows/requirements.txt | |
| - name: Run build | |
| run: | | |
| cd overview_deck | |
| python ../.github/workflows/build-decks.py | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PAT }} | |
| - name: Create Pull Request | |
| id: create_pr | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| branch-suffix: timestamp | |
| path: . | |
| title: Update Overview Decks for ${{ steps.date.outputs.CURRENT_DATE }} | |
| body: | | |
| Automated update of overview decks. | |
| This PR was generated by GitHub Actions. | |
| commit-message: Update Data Sources | |
| signoff: true | |
| delete-branch: true | |
| - name: Enable auto-merge | |
| if: steps.create_pr.outputs.pull-request-number != '' | |
| shell: bash | |
| run: gh pr merge --merge --auto "1" | |
| env: | |
| GH_TOKEN: ${{ secrets.PAT }} |