aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorraf <[email protected]>2024-08-26 18:24:57 +0000
committerGitHub <[email protected]>2024-08-26 20:24:57 +0200
commit09dbcabcc71f412dcaf86dbed7b67d58a273fa50 (patch)
tree07df728604e4dcd7cd07fcb90499e7d384ff8121 /.github/workflows
parent72c7818ae66a18d126e2b4245d649fe3a93d3b8e (diff)
downloadHyprland-09dbcabcc71f412dcaf86dbed7b67d58a273fa50.tar.gz
Hyprland-09dbcabcc71f412dcaf86dbed7b67d58a273fa50.zip
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.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/stale.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 51f6b91e..b8be5f55 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -7,22 +7,22 @@ name: Mark stale issues and pull requests
on:
schedule:
- - cron: '7 */4 * * *'
+ - cron: "7 */4 * * *"
workflow_dispatch:
jobs:
stale:
-
+ if: github.repository == 'hyprwm/Hyprland'
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
steps:
- - uses: actions/stale@v5
- with:
- repo-token: ${{ secrets.STALEBOT_PAT }}
- stale-issue-label: 'stale'
- stale-pr-label: 'stale'
- operations-per-run: 40
- days-before-close: -1
+ - uses: actions/stale@v5
+ with:
+ repo-token: ${{ secrets.STALEBOT_PAT }}
+ stale-issue-label: "stale"
+ stale-pr-label: "stale"
+ operations-per-run: 40
+ days-before-close: -1