Check NYMTC for 2025 HBT report #46
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: Check NYMTC for 2025 HBT report | |
| on: | |
| schedule: | |
| - cron: '0 12 * * *' # 12:00 UTC daily | |
| workflow_dispatch: | |
| inputs: | |
| test_post: | |
| description: 'Force a test post to Slack (bypasses the page-content check)' | |
| type: boolean | |
| default: false | |
| permissions: | |
| contents: read | |
| actions: write # to self-disable on success | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v3 | |
| - name: Run check | |
| id: check | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| SLACK_CHANNEL_ID: ${{ vars.SLACK_CHANNEL_ID }} | |
| run: | | |
| if [ "${{ inputs.test_post }}" = "true" ]; then | |
| scripts/check_nymtc_2025.py --test | |
| else | |
| scripts/check_nymtc_2025.py | |
| fi | |
| - name: Self-disable workflow (real hit only) | |
| if: steps.check.outputs.found == 'true' | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh workflow disable "Check NYMTC for 2025 HBT report" --repo "$GITHUB_REPOSITORY" |