Skip to content

Commit ec3a4c9

Browse files
authored
ci: disable deploy workflows in forked repos (#713)
The sites should not be deployed to forks.
1 parent 31b6ffc commit ec3a4c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
# Build job
2626
build:
2727
name: Build
28+
if: github.event.repository.fork == false
2829
runs-on: ubuntu-latest
2930
steps:
3031
- name: Checkout
@@ -69,6 +70,7 @@ jobs:
6970
name: github-pages
7071
url: ${{ steps.deployment.outputs.page_url }}
7172
needs: build
73+
if: github.event.repository.fork == false
7274
runs-on: ubuntu-latest
7375
name: Deploy
7476
steps:

0 commit comments

Comments
 (0)