Ops Tasks — Sunday Digest DM #13
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: Ops Tasks — Sunday Digest DM | |
| # Sunday 10am ET: DM each Ops member their own open tasks from the Ops Tasks Notion | |
| # database (🔴 past due, "carried N wks" on rollovers). DMs only — never a channel post. | |
| # GitHub cron fires hours late on this repo, so the script's gate is "Sunday, 10am ET or | |
| # later" and there are three triggers (EDT/EST + a catch-up); a Notion ⚙️ Job Log claim | |
| # makes any extra fire a no-op. Members with nothing open get no DM (silence is valid). | |
| on: | |
| schedule: | |
| - cron: '0 14 * * 0' # 10am EDT | |
| - cron: '0 15 * * 0' # 10am EST | |
| - cron: '0 18 * * 0' # catch-up (GitHub cron here fires hours late; gate is ≥10am ET, Job Log dedupes) | |
| workflow_dispatch: | |
| inputs: | |
| force: | |
| description: 'Run even if it is not Sunday 10am ET' | |
| type: boolean | |
| default: false | |
| dry_run: | |
| description: 'Print the DMs to the log instead of sending them' | |
| type: boolean | |
| default: false | |
| jobs: | |
| ops-digest: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ops-tasks-digest | |
| cancel-in-progress: false | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: PERBot/package-lock.json | |
| - name: Install dependencies | |
| working-directory: PERBot | |
| run: npm ci | |
| - name: DM members their open Ops tasks | |
| working-directory: PERBot | |
| run: npm run job:ops-digest | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }} | |
| FORCE_OPS_DIGEST: ${{ inputs.force }} | |
| OPS_DIGEST_DRY_RUN: ${{ inputs.dry_run }} |