From 79d9df550f4562f57eeae2328d2b21c170435776 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 12 Sep 2024 15:51:28 -0300 Subject: [PATCH] Revert "Using app token" This reverts commit 27500a740e5caf69da59d0b26ebe2c7dbd8f400b. --- .github/workflows/prepare-release.yml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index a9a59c8..5ee3973 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -26,27 +26,9 @@ jobs: next-version: ${{ steps.out.outputs.next-version }} steps: - - uses: actions/create-github-app-token@v1 - id: app-token - name: Create GitHub App Token - with: - app-id: ${{ vars.CI_APP_ID }} - private-key: ${{ secrets.CI_APP_PRIVATE_KEY }} - - - name: Get GitHub App User ID - id: get-user-id - run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT" - env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} - - - name: Configure Git author - run: | - git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]' - git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>' - - uses: actions/checkout@v4 with: - token: ${{steps.app-token.outputs.token}} + token: ${{secrets.RELEASE_TOKEN}} - uses: radcortez/project-metadata-action@main name: Retrieve project metadata @@ -68,6 +50,11 @@ jobs: java-version: 21 cache: 'maven' + - name: Configure Git author + run: | + git config --global user.name "SmallRye CI" + git config --global user.email "smallrye@googlegroups.com" + - name: Maven release ${{env.CURRENT_VERSION}} run: | mvn -B release:prepare -Prelease -Dgpg.skip=true -DreleaseVersion=${CURRENT_VERSION} -DdevelopmentVersion=${NEXT_VERSION} -DscmCommentPrefix="[skip ci] " -Drelease.arguments="-Dgpg.skip=true" @@ -81,7 +68,7 @@ jobs: - uses: radcortez/milestone-release-action@main name: milestone release with: - github-token: ${{steps.app-token.outputs.token}} + github-token: ${{secrets.GITHUB_TOKEN}} milestone-title: ${{steps.metadata.outputs.current-version}} - name: Output release version