Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Do not use shared variables or workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
emmahsax committed Jan 13, 2024
1 parent 1318092 commit 9902cc7
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions .github/workflows/auto-trigger-remove-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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.'

0 comments on commit 9902cc7

Please sign in to comment.