PythonBot - Office Hour Reminder #6
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: PythonBot - Office Hour Reminder | |
| on: | |
| schedule: | |
| - cron: "0 10 * * 3" | |
| workflow_dispatch: | |
| inputs: | |
| dry_run: | |
| description: "Run in dry-run mode (log only, no comments posted)" | |
| required: false | |
| default: "true" | |
| type: choice | |
| options: | |
| - "true" | |
| - "false" | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| office-hour-reminder: | |
| runs-on: hl-sdk-py-lin-md | |
| concurrency: | |
| group: office-hour-reminder | |
| cancel-in-progress: false | |
| steps: | |
| - name: Harden the runner | |
| uses: step-security/harden-runner@6c3c2f2c1c457b00c10c4848d6f5491db3b629df #2.18.0 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout repository | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 #v6.0.1 | |
| - name: Check Schedule and Notify | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run || 'false' }} | |
| run: | | |
| bash .github/scripts/cron-calls-office-hours.sh |