Skip to content

Commit b56a9d3

Browse files
committed
update cron to once daily; add PR condition on job
1 parent 70e4ad0 commit b56a9d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/minimum-open-time.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: PR Policy
22
on:
33
- pull_request
44
- workflow_dispatch
5-
# not sure about scheduling only on PRs. See https://github.com/orgs/community/discussions/49960
6-
# - schedule
7-
# - cron: '0 * * * *'
5+
# scheduling only on PRs is not directly supported. See https://github.com/orgs/community/discussions/49960
6+
- schedule
7+
- cron: '0 0 * * *' # once daily
88

99
jobs:
1010
require-minimum-open-time:
11+
if: github.event_name == 'pull_request'
1112
runs-on: ubuntu-latest
1213
name: Require Minimum Open Time
1314
steps:

0 commit comments

Comments
 (0)