Tweak to the conditional

This commit is contained in:
Adam Warner
2023-07-16 22:28:06 +01:00
committed by GitHub
parent 4d17d15a78
commit b60ffd2f84

View File

@@ -33,7 +33,7 @@ jobs:
# trigger "stale" removal immediately when stale issues are commented on
# we need to explicitly check that the trigger does not run on comment on a PR as
# 'issue_comment' triggers on issues AND PR comments
if: github.event_name == 'issue_comment' && ${{ !github.event.issue.pull_request }}
if: ${{ !github.event.issue.pull_request && github.event_name != 'schedule' }}
permissions:
contents: read # for actions/checkout
issues: write # to edit issues label