From e6ffcf001e3ebcc672bbf4bed223948b2e409716 Mon Sep 17 00:00:00 2001 From: Roberto Cortez Date: Thu, 19 Dec 2024 16:41:17 +0000 Subject: [PATCH] Update workflow --- .github/workflows/prepare-release.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index c0e5ced97..00a127ad2 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -12,18 +12,23 @@ concurrency: permissions: contents: write + issues: write jobs: prepare-gradle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - 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: git author - run: | - git config --global user.name "SmallRye CI" - git config --global user.email "smallrye@googlegroups.com" + - uses: actions/checkout@v4 + with: + token: ${{steps.app-token.outputs.token}} - uses: radcortez/project-metadata-action@main name: retrieve project metadata @@ -32,6 +37,11 @@ jobs: github-token: ${{secrets.GITHUB_TOKEN}} metadata-file-path: '.github/project.yml' + - name: git author + run: | + git config --global user.name "SmallRye CI" + git config --global user.email "smallrye@googlegroups.com" + - name: Prepare Gradle run: | echo "version=${{steps.metadata.outputs.current-version}}" > tools/gradle-plugin/gradle.properties @@ -44,4 +54,6 @@ jobs: name: Prepare Release if: ${{ github.event.pull_request.merged == true}} uses: smallrye/.github/.github/workflows/prepare-release.yml@main + with: + ref: main secrets: inherit