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 name: Nix
jobs: jobs:
check-zig-cache-hash: check-zig-cache-hash:
if: github.repository == 'ghostty-org/ghostty'
runs-on: namespace-profile-ghostty-sm runs-on: namespace-profile-ghostty-sm
env: env:
ZIG_LOCAL_CACHE_DIR: /zig/local-cache ZIG_LOCAL_CACHE_DIR: /zig/local-cache

View File

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