From 3fbad41d49497c082e4a19606a42d77b80437647 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:08:05 -0800 Subject: [PATCH] Update version of github-event-processor (#5382) Co-authored-by: James Suplizio --- .github/workflows/event-processor.yml | 2 +- .github/workflows/scheduled-event-processor.yml | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml index 7b5aa2437..c2b77c022 100644 --- a/.github/workflows/event-processor.yml +++ b/.github/workflows/event-processor.yml @@ -55,7 +55,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240223.2 + --version 1.0.0-dev.20240227.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash diff --git a/.github/workflows/scheduled-event-processor.yml b/.github/workflows/scheduled-event-processor.yml index f21eb417a..531d70e40 100644 --- a/.github/workflows/scheduled-event-processor.yml +++ b/.github/workflows/scheduled-event-processor.yml @@ -14,6 +14,8 @@ on: - cron: '30 4,10,16,22 * * *' # Lock closed issues, every 6 hours at 05:30 AM, 11:30 AM, 05:30 PM and 11:30 PM - LockClosedIssues - cron: '30 5,11,17,23 * * *' + # Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues + - cron: '0 10 * * MON' # This removes all unnecessary permissions, the ones needed will be set below. # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token permissions: {} @@ -34,7 +36,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240223.2 + --version 1.0.0-dev.20240227.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash @@ -126,3 +128,12 @@ jobs: shell: bash env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Enforce Max Life of Issues Scheduled Event + if: github.event.schedule == '0 10 * * MON' + run: | + echo $GITHUB_PAYLOAD > payload.json + github-event-processor ${{ github.event_name }} payload.json EnforceMaxLifeOfIssues + shell: bash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}