From f4ed2d82373b7e2b9bbe0be950230af15d6ef7c8 Mon Sep 17 00:00:00 2001 From: Andres Almiray Date: Mon, 8 Aug 2022 17:29:15 +0200 Subject: [PATCH] Update release configuration --- .github/workflows/build.yml | 2 +- .github/workflows/early-access.yml | 2 +- .github/workflows/release.yml | 14 ++++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad44a3a9..438736a2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: - uses: actions/checkout@v3 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v2 with: java-version: ${{ env.JAVA_VERSION }} distribution: ${{ env.JAVA_DISTRO }} diff --git a/.github/workflows/early-access.yml b/.github/workflows/early-access.yml index 96571ddb..23b234f3 100644 --- a/.github/workflows/early-access.yml +++ b/.github/workflows/early-access.yml @@ -56,7 +56,7 @@ jobs: - uses: actions/checkout@v3 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v2 with: java-version: ${{ env.JAVA_VERSION }} distribution: ${{ env.JAVA_DISTRO }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57b39022..78ba9214 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,8 @@ name: Release env: JAVA_VERSION: '17' JAVA_DISTRO: 'zulu' + USER_EMAIL: '41898282+github-actions[bot]@users.noreply.github.com' + USER_NAME: 'GitHub Action' on: workflow_dispatch: @@ -38,7 +40,8 @@ jobs: with: fetch-depth: 0 - - uses: actions/setup-java@v3 + - name: Setup Java + uses: actions/setup-java@v2 with: java-version: ${{ env.JAVA_VERSION }} distribution: ${{ env.JAVA_DISTRO }} @@ -68,8 +71,8 @@ jobs: fi echo "NEXT_VERSION=$NEXT_VERSION" >> $GITHUB_ENV ./mvnw -B -ntp versions:set versions:commit -DnewVersion=$RELEASE_VERSION - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Action" + git config --global user.email "${{ env.USER_EMAIL }}" + git config --global user.name "${{ env.USER_NAME }}" git commit -a -m "🏁 Releasing version $RELEASE_VERSION" git push origin HEAD:master @@ -84,7 +87,6 @@ jobs: MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} run: | export GPG_TTY=$(tty) - export MAVEN_OPTS=--illegal-access=permit ./mvnw --no-transfer-progress -B --file pom.xml \ -Drepository.url=https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git \ -Dmaven.site.skip=true -Drelease=true -DskipTests=true deploy @@ -109,7 +111,7 @@ jobs: - name: 'Set next version' run: | ./mvnw -B versions:set versions:commit -DnewVersion=${{ env.NEXT_VERSION }} - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Action" + git config --global user.email "${{ env.USER_EMAIL }}" + git config --global user.name "${{ env.USER_NAME }}" git commit -a -m "⬆️ Next version ${{ env.NEXT_VERSION }}" git push origin HEAD:master \ No newline at end of file