99 pull_request :
1010 branches :
1111 - master
12+ permissions :
13+ contents : read
14+
1215jobs :
1316 build :
1417 runs-on : ${{ matrix.os }}
@@ -21,37 +24,34 @@ jobs:
2124 env :
2225 JAVA_OPTS : " -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
2326 steps :
24- - uses : actions/checkout@v3
27+ - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2528 - name : Set up JDK
26- uses : actions/setup-java@v3
29+ uses : actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
2730 with :
2831 distribution : ' temurin'
2932 java-version : ${{ matrix.java_version }}
3033 cache : ' maven'
3134 server-id : sonatype-nexus-snapshots
3235 server-username : CI_DEPLOY_USERNAME
3336 server-password : CI_DEPLOY_PASSWORD
34- # See https://github.com/actions/setup-java/blob/v2/docs/advanced-usage.md#Publishing-using-Apache-Maven
35- # gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
36- # gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
37- - name : Build project
37+ - name : Build
3838 run : ./mvnw -B -q -ff -ntp verify
3939 - name : Extract project Maven version
4040 id : projectVersion
41- run : echo ::set-output name= version:: $(./mvnw org.apache.maven.plugins:maven-help-plugin:3.2.0 :evaluate -DforceStdout -Dexpression=project.version -q)
41+ run : echo " version= $(./mvnw org.apache.maven.plugins:maven-help-plugin:3.4.1 :evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
4242 - name : Deploy snapshot
43- if : github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
43+ if : ${{ github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
4444 env :
4545 CI_DEPLOY_USERNAME : ${{ secrets.CI_DEPLOY_USERNAME }}
4646 CI_DEPLOY_PASSWORD : ${{ secrets.CI_DEPLOY_PASSWORD }}
4747 # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
4848 run : ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
4949 - name : Generate code coverage
50- if : github.event_name != 'pull_request' && matrix.java_version == '8'
50+ if : ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
5151 run : ./mvnw -B -q -ff -ntp test
5252 - name : Publish code coverage
53- if : github.event_name != 'pull_request' && matrix.java_version == '8'
54- uses : codecov/codecov-action@v1
53+ if : ${{ github.event_name != 'pull_request' && matrix.java_version == '8' }}
54+ uses : codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1
5555 with :
5656 token : ${{ secrets.CODECOV_TOKEN }}
5757 file : ./target/site/jacoco/jacoco.xml
0 commit comments