Skip to content

PythonBot - Office Hour Reminder #21

PythonBot - Office Hour Reminder

PythonBot - Office Hour Reminder #21

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@e14015d583714f6e62063499dc959a02595150a1 # v2.21.1
with:
egress-policy: audit
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.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