Skip to content

Commit 698b6c4

Browse files
committed
feedback: add repo check publish step in workflow
Prevent failed publishes on forks.
1 parent 3256afe commit 698b6c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: "🏃 Run tests"
3535
run: ./gradlew check
3636
publish_snapshot:
37-
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
37+
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.repository_owner == 'grails-plugins'
3838
name: "Build Project and Publish Snapshot release"
3939
needs: test_project
4040
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)