Skip to content

Commit 74d10a9

Browse files
Update version of github-event-processor (#34471)
Co-authored-by: James Suplizio <jasupliz@microsoft.com>
1 parent 2e524a8 commit 74d10a9

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/event-processor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
run: >
5656
dotnet tool install
5757
Azure.Sdk.Tools.GitHubEventProcessor
58-
--version 1.0.0-dev.20240223.2
58+
--version 1.0.0-dev.20240227.2
5959
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
6060
--global
6161
shell: bash

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
- cron: '30 4,10,16,22 * * *'
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 * * *'
17+
# Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues
18+
- cron: '0 10 * * MON'
1719
# This removes all unnecessary permissions, the ones needed will be set below.
1820
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
1921
permissions: {}
@@ -34,7 +36,7 @@ jobs:
3436
run: >
3537
dotnet tool install
3638
Azure.Sdk.Tools.GitHubEventProcessor
37-
--version 1.0.0-dev.20240223.2
39+
--version 1.0.0-dev.20240227.2
3840
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
3941
--global
4042
shell: bash
@@ -126,3 +128,12 @@ jobs:
126128
shell: bash
127129
env:
128130
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
131+
132+
- name: Enforce Max Life of Issues Scheduled Event
133+
if: github.event.schedule == '0 10 * * MON'
134+
run: |
135+
echo $GITHUB_PAYLOAD > payload.json
136+
github-event-processor ${{ github.event_name }} payload.json EnforceMaxLifeOfIssues
137+
shell: bash
138+
env:
139+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)