Merge pull request #2181 from injust/disable-fork-workflows

Stop GitHub workflow jobs from running on forks
This commit is contained in:
Mitchell Hashimoto
2024-09-02 18:43:48 -07:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,7 @@ on: [push, pull_request]
name: Nix
jobs:
check-zig-cache-hash:
if: github.repository == 'ghostty-org/ghostty'
runs-on: namespace-profile-ghostty-sm
env:
ZIG_LOCAL_CACHE_DIR: /zig/local-cache

View File

@ -287,6 +287,7 @@ jobs:
run: Get-Content -Path ".\build.log"
test:
if: github.repository == 'ghostty-org/ghostty'
runs-on: namespace-profile-ghostty-md
env:
ZIG_LOCAL_CACHE_DIR: /zig/local-cache
@ -343,6 +344,7 @@ jobs:
run: nix develop -c zig build test
prettier:
if: github.repository == 'ghostty-org/ghostty'
runs-on: namespace-profile-ghostty-sm
timeout-minutes: 60
env:
@ -369,6 +371,7 @@ jobs:
run: nix develop -c prettier --check .
alejandra:
if: github.repository == 'ghostty-org/ghostty'
runs-on: namespace-profile-ghostty-sm
timeout-minutes: 60
env:
@ -395,6 +398,7 @@ jobs:
run: nix develop -c alejandra --check .
typos:
if: github.repository == 'ghostty-org/ghostty'
runs-on: namespace-profile-ghostty-sm
timeout-minutes: 60
env: