Skip to content

Commit 636fe6f

Browse files
committed
Replace fork checks
1 parent 0f57143 commit 636fe6f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
publish-snapshot:
2828
needs: build
2929
runs-on: ubuntu-latest
30-
if: github.repository == 'GradleUp/shadow' && github.ref == 'refs/heads/main'
30+
if: github.event.repository.fork == false && github.ref == 'refs/heads/main'
3131
steps:
3232
- uses: actions/checkout@v4
3333
- uses: actions/setup-java@v4

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
deploy:
88
runs-on: ubuntu-latest
9-
if: github.repository == 'GradleUp/shadow'
9+
if: github.event.repository.fork == false
1010
environment:
1111
name: github-pages
1212
permissions:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11-
if: github.repository == 'GradleUp/shadow'
11+
if: github.event.repository.fork == false
1212
environment:
1313
name: github-pages
1414
permissions:

0 commit comments

Comments
 (0)