Skip to content

Commit 350c7e7

Browse files
committed
feat: support dry run on dispatch and fixes
Signed-off-by: exploreriii <[email protected]>
1 parent 01ddf5a commit 350c7e7

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/bot-community-calls.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,24 @@ name: PythonBot - Community Call Reminder
33
on:
44
schedule:
55
- cron: "0 10 * * 3"
6+
workflow_dispatch:
7+
inputs:
8+
dry_run:
9+
description: "Run in dry mode (no comments will be posted)"
10+
required: false
11+
default: "true"
12+
type: choice
13+
options:
14+
- "true"
15+
- "false"
616

717
permissions:
818
contents: read
9-
pull-requests: write
19+
issues: write
20+
21+
concurrency:
22+
group: community-call-reminder
23+
cancel-in-progress: false
1024

1125
jobs:
1226
office-hour-reminder:
@@ -23,6 +37,6 @@ jobs:
2337
- name: Check Schedule and Notify
2438
env:
2539
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
DRY_RUN: "false" # will post
40+
DRY_RUN: "false" # will post when workflow is triggered by cron
2741
run: |
2842
bash .github/scripts/bot-community-calls.sh

0 commit comments

Comments
 (0)