From 2bce2b7dab7824fb5d31542ab8ed8349294b751a Mon Sep 17 00:00:00 2001 From: zcorpan Date: Tue, 3 Dec 2024 16:37:01 +0100 Subject: [PATCH] Avoid running the deploy workflow in forks --- .github/workflows/build-and-deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 49306c6..b542c14 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -17,6 +17,12 @@ jobs: runs-on: ubuntu-latest steps: + - name: Skip Workflow for Forks + if: ${{ github.repository != 'mozilla/standards-positions' }} + run: | + echo "Skipping job for fork repository." + exit 0 + - name: Check out the repository uses: actions/checkout@v4 with: