From de56c6ef3ca4953fdb0bc07f81f2b2980c1fd3ec Mon Sep 17 00:00:00 2001 From: pgodithi Date: Sat, 16 Jul 2022 20:25:50 -0400 Subject: [PATCH] Version increment automation: GH app tokens Signed-off-by: pgodithi --- .github/workflows/increment-plugin-versions.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/increment-plugin-versions.yml b/.github/workflows/increment-plugin-versions.yml index fba478d0d5..8164fe4bdb 100644 --- a/.github/workflows/increment-plugin-versions.yml +++ b/.github/workflows/increment-plugin-versions.yml @@ -68,11 +68,19 @@ jobs: cd ${{ matrix.entry.path }} fi ./gradlew updateVersion -DnewVersion=${{ env.OPENSEARCH_VERSION }} + - name: GitHub App token + id: github_app_token + uses: tibdex/github-app-token@v1.6.0 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + installation_id: 27448020 - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v4 with: - token: ${{ secrets.CIBOTAUTOPR }} + token: ${{ steps.github_app_token.outputs.token }} + committer: opensearch-ci-bot author: opensearch-ci-bot commit-message: | Increment version to ${{ env.OPENSEARCH_VERSION }}