@@ -2,6 +2,7 @@ name: GitHub Scheduled Event Processor
2
2
3
3
on :
4
4
schedule :
5
+ # These are generated/confirmed using https://crontab.cronhub.io/
5
6
# Close stale issues, runs every day at 1am - CloseStaleIssues
6
7
- cron : ' 0 1 * * *'
7
8
# Identify stale pull requests, every Friday at 5am - IdentifyStalePullRequests
14
15
- cron : ' 30 4,10,16,22 * * *'
15
16
# Lock closed issues, every 6 hours at 05:30 AM, 11:30 AM, 05:30 PM and 11:30 PM - LockClosedIssues
16
17
- cron : ' 30 5,11,17,23 * * *'
17
- # Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues
18
+ # Enforce max life of issues, every M,W,F at 10:00 AM PST - EnforceMaxLifeOfIssues
18
19
# Note: GitHub uses UTC, to run at 10am PST, the cron task needs to be 6pm (1800 hours) UTC
19
- - cron : ' 0 18 * * MON'
20
+ # When scheduling for multiple days the numeric days 0-6 (0=Sunday) must be used.
21
+ - cron : ' 0 18 * * 1,3,5'
20
22
# This removes all unnecessary permissions, the ones needed will be set below.
21
23
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
22
24
permissions : {}
37
39
run : >
38
40
dotnet tool install
39
41
Azure.Sdk.Tools.GitHubEventProcessor
40
- --version 1.0.0-dev.20240229.2
42
+ --version 1.0.0-dev.20240308.3
41
43
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
42
44
--global
43
45
shell : bash
@@ -131,7 +133,7 @@ jobs:
131
133
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
132
134
133
135
- name : Enforce Max Life of Issues Scheduled Event
134
- if : github.event.schedule == '0 18 * * MON '
136
+ if : github.event.schedule == '0 18 * * 1,3,5 '
135
137
run : |
136
138
cat > payload.json << 'EOF'
137
139
${{ toJson(github.event) }}
0 commit comments