File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ jobs:
1515 steps :
1616 - uses : actions/checkout@v4
1717 - name : Set up JDK 17 (0.x)
18- if : startsWith (github.ref, 'refs/heads /0.x/')
18+ if : endsWith (github.ref, '/0.x/')
1919 uses : actions/setup-java@v4
2020 with :
2121 java-version : ' 17'
2222 distribution : ' temurin'
2323 cache : maven
2424 - name : Set up JDK 25 (main)
25- if : startsWith (github.ref, 'refs/heads /main/')
25+ if : endsWith (github.ref, '/main/')
2626 uses : actions/setup-java@v4
2727 with :
2828 java-version : ' 25'
3838 central_password : ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
3939 signing_key : ${{ secrets.GPG_PRIVATE_KEY }}
4040 passphrase : ${{ secrets.GPG_PASSPHRASE }}
41+ ghref : ${{ github.ref }}
4142 run : |
43+ echo "**** github.ref = ${ghref}"
4244 echo "${signing_key}" > private.asc
4345 gpg --import --batch --no-tty private.asc
4446 ./mvnw -B deploy -s .mvn/settings.xml
You can’t perform that action at this time.
0 commit comments