-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create stale.yml for repo_sync automation
repo_sync automation in prometheus/prometheus only syncs the files that exist in the target repo, so create .github/workflows/stale.yml to register and then automation will keep it in sync with prometheus/prometheus
- Loading branch information
1 parent
c95ba41
commit 24ab808
Showing
2 changed files
with
31 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Stale Check | ||
on: | ||
workflow_dispatch: {} | ||
schedule: | ||
- cron: '16 22 * * *' | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
jobs: | ||
stale: | ||
if: github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks. | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
# opt out of defaults to avoid marking issues as stale and closing them | ||
# https://github.com/actions/stale#days-before-close | ||
# https://github.com/actions/stale#days-before-stale | ||
days-before-stale: -1 | ||
days-before-close: -1 | ||
# Setting it to empty string to skip comments. | ||
# https://github.com/actions/stale#stale-pr-message | ||
# https://github.com/actions/stale#stale-issue-message | ||
stale-pr-message: '' | ||
stale-issue-message: '' | ||
operations-per-run: 30 | ||
# override days-before-stale, for only marking the pull requests as stale | ||
days-before-pr-stale: 60 | ||
stale-pr-label: stale | ||
exempt-pr-labels: keepalive |