mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-01 20:51:58 -07:00
CI: disable stale workflow on forks (#7535)
The stale workflow will run unconditionally, but will fail on forks due to `STALEBOT_PAT` not being set. Trigger the workflow *only* if we are on the main repo, where we can guarantee the PAT. Also formats the YML syntax to be slightly more readable.
This commit is contained in:
18
.github/workflows/stale.yml
vendored
18
.github/workflows/stale.yml
vendored
@@ -7,22 +7,22 @@ name: Mark stale issues and pull requests
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '7 */4 * * *'
|
- cron: "7 */4 * * *"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
|
if: github.repository == 'hyprwm/Hyprland'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v5
|
- uses: actions/stale@v5
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.STALEBOT_PAT }}
|
repo-token: ${{ secrets.STALEBOT_PAT }}
|
||||||
stale-issue-label: 'stale'
|
stale-issue-label: "stale"
|
||||||
stale-pr-label: 'stale'
|
stale-pr-label: "stale"
|
||||||
operations-per-run: 40
|
operations-per-run: 40
|
||||||
days-before-close: -1
|
days-before-close: -1
|
||||||
|
Reference in New Issue
Block a user