Skip to content

Commit 8ae3922

Browse files
committed
Do not run publish on forks or PRs from master
1 parent 75e0959 commit 8ae3922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
name : Publish
8686
runs-on: ubuntu-latest
8787
needs: [ test ]
88-
if: github.ref == 'refs/heads/master'
88+
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'tschuchortdev/kotlin-compile-testing'
8989
env:
9090
# https://proandroiddev.com/publishing-a-maven-artifact-3-3-step-by-step-instructions-to-mavencentral-publishing-bd661081645d
9191
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}

0 commit comments

Comments
 (0)