From 5d474de90ee8c0afc7e1f65a5eadd045e6e9a98b Mon Sep 17 00:00:00 2001 From: isobelmcrae Date: Thu, 19 Feb 2026 23:53:31 +1100 Subject: [PATCH] fix: prevent deploy action running on forks --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7a10274..2b044b2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,15 +12,15 @@ permissions: jobs: build: + if: github.repository == 'linuxunsw/wiki' runs-on: ubuntu-22.04 - steps: - uses: actions/checkout@v4 - name: Setup Node uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 24 cache: npm - name: Install dependencies @@ -35,6 +35,7 @@ jobs: path: ./_site deploy: + if: github.repository == 'linuxunsw/wiki' needs: build runs-on: ubuntu-22.04 environment: