Skip to content

Commit

Permalink
Avoid running the deploy workflow in forks
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Dec 6, 2024
1 parent f991732 commit 2bce2b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2bce2b7

Please sign in to comment.