This repository has been archived by the owner on May 10, 2024. It is now read-only.
forked from ltagliamonte/ecr-get-login
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use shared variables or workflows
- Loading branch information
Showing
1 changed file
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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.' |