Don't run GitHub workflows on forks

This commit is contained in:
Justin Su
2024-09-02 02:26:24 -04:00
parent d8fc54d1bf
commit b27667fcfc
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: