From 9902cc77375b4bed474980ee6940990d923007bb Mon Sep 17 00:00:00 2001 From: Emma Sax Date: Sat, 13 Jan 2024 07:13:56 -0600 Subject: [PATCH] Do not use shared variables or workflows --- .../workflows/auto-trigger-remove-stale.yml | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-trigger-remove-stale.yml b/.github/workflows/auto-trigger-remove-stale.yml index 351036d..a2c6559 100644 --- a/.github/workflows/auto-trigger-remove-stale.yml +++ b/.github/workflows/auto-trigger-remove-stale.yml @@ -2,10 +2,30 @@ name: "Daily/Trigger: Remove Stale Branches & PRs" on: schedule: - - cron: "0 0 * * *" # Everyday at midnight + - cron: "0 0 * * *" # 12am UTC daily (6pm/7pm CT) workflow_dispatch: jobs: remove-stale: - name: Remove Stale Branches & PRs - uses: dispatchitinc/github-actions/.github/workflows/remove-stale.yml@v1 + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + close-pr-message: 'This PR was closed because it has been stale for 7 days.' + days-before-close: 7 + days-before-issue-close: -1 + days-before-issue-stale: -1 + days-before-stale: 60 + delete-branch: true + exempt-pr-labels: 'dependencies' + operations-per-run: 75 + stale-pr-label: 'stale' + stale-pr-message: 'This PR is marked as stale because it has been open for 60 days with no activity.' + + - uses: fpicalausa/remove-stale-branches@v1.6.0 + with: + days-before-branch-delete: 7 + days-before-branch-stale: 90 + exempt-authors-regex: "^(dependa|renovate)" + operations-per-run: 75 + stale-branch-message: 'This branch is marked as stale because it has had no activity in 90 days. Delete the comment or add new commits to avoid the branch being deleted in 7 days.'