Skip to content

Commit ea074d6

Browse files
committed
fix: issue bot dry run
Signed-off-by: prajeeta pal <prajeetapal@gmail.com>
1 parent 34ba63c commit ea074d6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/scripts/issue_reminder_no_pr.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ REPO="${REPO:-${GITHUB_REPOSITORY:-}}"
1111
DAYS="${DAYS:-7}"
1212
DRY_RUN="${DRY_RUN:-false}"
1313

14+
# Normalize DRY_RUN to "true" or "false"
15+
if [[ "$DRY_RUN" == "true" || "$DRY_RUN" == "yes" || "$DRY_RUN" == "1" ]]; then
16+
DRY_RUN="true"
17+
else
18+
DRY_RUN="false"
19+
fi
20+
1421
if [ -z "$REPO" ]; then
1522
echo "ERROR: REPO environment variable not set."
1623
exit 1

.github/workflows/bot-issue-reminder-no-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ jobs:
3434
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535
REPO: ${{ github.repository }}
3636
DAYS: 7
37-
DRY_RUN: ${{ inputs.dry_run }}
37+
DRY_RUN: ${{ inputs.dry_run || 'false' }}
3838
run: bash .github/scripts/issue_reminder_no_pr.sh

0 commit comments

Comments
 (0)