ci: only run lock and regress workflows on the main repo

Forks are just wasting CI cycles spinning actions which are probably not
looked at. Also avoid locking issues and PRs on any forks with
upstream's policies.
This commit is contained in:
Ben Boeckel
2026-08-06 10:23:46 -04:00
parent 40a485db9c
commit 35ab660042
2 changed files with 2 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ concurrency:
jobs:
action:
runs-on: ubuntu-latest
if: github.repository == 'tmux/tmux'
steps:
- uses: dessant/lock-threads@v6
with:

View File

@@ -16,6 +16,7 @@ jobs:
regress:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runner }}
if: github.repository == 'tmux/tmux'
timeout-minutes: 45
strategy: