From 3f1548bff4faac2b4e2209a845184b4f332c6626 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Wed, 19 Jun 2024 17:02:11 -0700 Subject: [PATCH] Minor CI improvements --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5b2ea604..02420e99 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,6 +16,9 @@ on: paths-ignore: - "README.md" - "release-notes/*" +permissions: + contents:read + jobs: build: runs-on: ${{ matrix.os }} @@ -44,7 +47,7 @@ jobs: run: ./mvnw -B -q -ff -ntp verify - name: Extract project Maven version id: projectVersion - run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT + run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.4.1:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT - name: Deploy snapshot if: github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') env: