From c3e27214e964fbdfdf486b93bbb7313c5eda527f Mon Sep 17 00:00:00 2001 From: ViacheslavP Date: Wed, 27 Nov 2024 20:17:23 +0400 Subject: [PATCH] Added app support --- .github/workflows/update_tdk_version.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_tdk_version.yml b/.github/workflows/update_tdk_version.yml index 74a0868..a7177e5 100644 --- a/.github/workflows/update_tdk_version.yml +++ b/.github/workflows/update_tdk_version.yml @@ -10,6 +10,12 @@ jobs: env: RELEASE_VERSION: ${{ github.event.client_payload.version }} steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ secrets.TDK_GOVERNOR_RELEASE_APP_ID }} + private-key: ${{ secrets.TDK_GOVERNOR_RELEASE_APP_PRIVATE_KEY }} + - uses: actions/checkout@v4 - name: Update image version @@ -31,7 +37,7 @@ jobs: - name: Create PR env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | pr=$(gh pr create --base main \ --head "update-release-version-v${RELEASE_VERSION}" \