We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046086d commit b788405Copy full SHA for b788405
…flows/bot-inactivity-unassign-phase1.yml …kflows/bot-inactivity-unassign-phase.yml.github/workflows/bot-inactivity-unassign-phase1.yml renamed to .github/workflows/bot-inactivity-unassign-phase.yml
@@ -4,6 +4,12 @@ on:
4
schedule:
5
- cron: "0 12 * * *"
6
workflow_dispatch:
7
+ inputs:
8
+ dry_run:
9
+ description: "Run in dry-run mode (no unassign / close / comment)"
10
+ required: true
11
+ default: "true"
12
+ type: boolean
13
14
permissions:
15
contents: read
@@ -28,5 +34,8 @@ jobs:
28
34
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29
35
REPO: ${{ github.repository }}
30
36
DAYS: 21
31
- DRY_RUN: 0
37
+ # Default behaviour:
38
+ # - schedule: DRY_RUN=0 (real actions)
39
+ # - workflow_dispatch: DRY_RUN comes from the "dry_run" input (true → 1, false → 0)
40
+ DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.dry_run == 'true' && '1' || '0') || '0' }}
32
41
run: bash .github/scripts/inactivity_unassign.sh
0 commit comments