From 3bc8b548ed7b5c803e1ebb4a0f0dd2afb4b09e8a Mon Sep 17 00:00:00 2001 From: Gonzalo Riestra Date: Fri, 11 Sep 2026 09:22:08 +0200 Subject: [PATCH] Fix scheduled maintenance runs --- .github/workflows/maintenance-prs.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maintenance-prs.yml b/.github/workflows/maintenance-prs.yml index ef6e06030c0..43e46a8b8f7 100644 --- a/.github/workflows/maintenance-prs.yml +++ b/.github/workflows/maintenance-prs.yml @@ -3,8 +3,8 @@ name: maintenance-prs on: workflow_dispatch: schedule: - # Everyday at 00:00 UTC - - cron: '0 0 * * *' + # Monday–Friday at 00:00 UTC + - cron: '0 0 * * 1-5' permissions: contents: write @@ -76,6 +76,8 @@ jobs: with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} github_token: ${{ secrets.GITHUB_TOKEN }} + # Scheduled runs can inherit the merge queue bot as their actor. + allowed_bots: github-merge-queue bot_name: 'github-actions[bot]' bot_id: '41898282' prompt: | @@ -128,7 +130,7 @@ jobs: core.setOutput('payload', JSON.stringify({ channel: 'C0ARV62K59C', // #devtools-gardener-backlog - text: `Maintenance PR (${process.env.MAINTENANCE_TASK}): <${pullRequest.html_url}|${pullRequestTitle}>`, + text: `Maintenance PR: <${pullRequest.html_url}|${pullRequestTitle}>`, unfurl_links: false, unfurl_media: false, }));