Skip to content

Commit f618f5c

Browse files
committed
tweak conditional
1 parent 7e3ac6a commit f618f5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/stale.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
# trigger "stale" removal immediately when stale issues are commented on
3434
# we need to explicitly check that the trigger does not run on comment on a PR as
3535
# 'issue_comment' triggers on issues AND PR comments
36-
if: github.event_name == 'issue_comment' && ${{ !github.event.issue.pull_request }}
36+
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment-on-issues-only-or-pull-requests-only
37+
if: ${{ !github.event.issue.pull_request && github.event_name != 'schedule' }}
3738
permissions:
3839
contents: read # for actions/checkout
3940
issues: write # to edit issues label

0 commit comments

Comments
 (0)