Skip to content

Commit f39704f

Browse files
authored
Fix EnforceMaxLifeOfIssues event and run time (#7808)
1 parent 9542023 commit f39704f

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/scheduled-event-processor.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ on:
1515
# Lock closed issues, every 6 hours at 05:30 AM, 11:30 AM, 05:30 PM and 11:30 PM - LockClosedIssues
1616
- cron: '30 5,11,17,23 * * *'
1717
# Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues
18-
- cron: '0 10 * * MON'
18+
# Note: GitHub uses UTC, to run at 10am PST, the cron task needs to be 6pm (1800 hours) UTC
19+
- cron: '0 18 * * MON'
1920
# This removes all unnecessary permissions, the ones needed will be set below.
2021
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
2122
permissions: {}
@@ -130,9 +131,11 @@ jobs:
130131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131132

132133
- name: Enforce Max Life of Issues Scheduled Event
133-
if: github.event.schedule == '0 10 * * MON'
134+
if: github.event.schedule == '0 18 * * MON'
134135
run: |
135-
echo $GITHUB_PAYLOAD > payload.json
136+
cat > payload.json << 'EOF'
137+
${{ toJson(github.event) }}
138+
EOF
136139
github-event-processor ${{ github.event_name }} payload.json EnforceMaxLifeOfIssues
137140
shell: bash
138141
env:

0 commit comments

Comments
 (0)