Repository navigation
Feat/stackitsdk 614 gha lint #595
Workflow file for this run
This file contains hidden or 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
| name: "Stale" | |
| on: | |
| schedule: | |
| # every night at 01:30 | |
| - cron: "30 1 * * *" | |
| # run this workflow if the workflow definition gets changed within a PR | |
| pull_request: | |
| branches: ["main"] | |
| paths: [".github/workflows/stale.yaml"] | |
| env: | |
| DAYS_BEFORE_PR_STALE: 14 | |
| DAYS_BEFORE_PR_CLOSE: 14 | |
| EXEMPT_PR_LABELS: "ignore-stale" | |
| permissions: {} | |
| jobs: | |
| stale: | |
| name: "Stale" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write # Issue processing is disabled below. | |
| timeout-minutes: 10 | |
| steps: | |
| - name: "Mark old PRs as stale" | |
| uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| stale-pr-message: "This PR was marked as stale after ${{ env.DAYS_BEFORE_PR_STALE }} days of inactivity and will be closed after another ${{ env.DAYS_BEFORE_PR_CLOSE }} days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it." | |
| close-pr-message: "This PR was closed automatically because it has been stalled for ${{ env.DAYS_BEFORE_PR_CLOSE }} days with no activity. Feel free to re-open it at any time." | |
| days-before-pr-stale: ${{ env.DAYS_BEFORE_PR_STALE }} | |
| days-before-pr-close: ${{ env.DAYS_BEFORE_PR_CLOSE }} | |
| exempt-pr-labels: ${{ env.EXEMPT_PR_LABELS }} | |
| # never mark issues as stale or close them | |
| days-before-issue-stale: -1 | |
| days-before-issue-close: -1 |