Skip to content

Commit c2ba182

Browse files
committed
make the environment conditional
1 parent cef1e11 commit c2ba182

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13-
environment: sonatype-central
13+
environment: ${{ (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/javacan-') ) && 'sonatype-central' || null }}
1414
steps:
1515
- uses: actions/checkout@v4
1616
with:

0 commit comments

Comments
 (0)