Skip to content

Commit 950c299

Browse files
committed
Check main branch before snapshot publishing
1 parent ccae836 commit 950c299

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
@@ -30,7 +30,7 @@ jobs:
3030
publish-snapshot:
3131
needs: build
3232
runs-on: ubuntu-latest
33-
if: github.repository == 'GradleUp/shadow'
33+
if: github.repository == 'GradleUp/shadow' && github.ref == 'refs/heads/main'
3434
steps:
3535
- uses: actions/checkout@v4
3636
- uses: actions/setup-java@v4

0 commit comments

Comments
 (0)