Skip to content

Commit dd293cc

Browse files
authored
ci: avoid workflow running in fork (SchemaStore#4795)
1 parent c48cdd0 commit dd293cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/github-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
# Build job.
2424
build:
2525
runs-on: 'ubuntu-latest'
26+
if: ${{ github.repository_owner == 'SchemaStore' }}
2627
steps:
2728
- uses: 'actions/checkout@v4'
2829
- uses: 'actions/setup-node@v4'
@@ -43,6 +44,7 @@ jobs:
4344
name: 'github-pages'
4445
url: '${{ steps.deployment.outputs.page_url }}'
4546
runs-on: 'ubuntu-latest'
47+
if: ${{ github.repository_owner == 'SchemaStore' }}
4648
needs: 'build'
4749
steps:
4850
- id: 'deployment'

0 commit comments

Comments
 (0)