From 12b9d1ec47bcc72267931b16331e85fb35ad168e Mon Sep 17 00:00:00 2001 From: Daan Timmer <8293597+daantimmer@users.noreply.github.com> Date: Mon, 21 Oct 2024 13:27:17 +0200 Subject: [PATCH] chore: use action/create-github-app-token to generate a token to be used for the create-pull-request action (#434) * chore: use action/create-github-app-token to generate a token to be used for the create-pull-request action * chore: remove on push --- .github/workflows/update-emil-git-tag.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/update-emil-git-tag.yml b/.github/workflows/update-emil-git-tag.yml index 743fc1d2..5c97ea52 100644 --- a/.github/workflows/update-emil-git-tag.yml +++ b/.github/workflows/update-emil-git-tag.yml @@ -51,9 +51,16 @@ jobs: sed -i 's/${{ steps.pull_head.outputs.current_hash }}/${{ steps.pull_head.outputs.latest_hash }}/g' CMakeLists.txt rm -rf ninja-build + - uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 + id: token + with: + app-id: ${{ vars.FOREST_RELEASER_APP_ID }} + private-key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY }} + - uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5 if: ${{ steps.pull_head.outputs.current_hash != steps.pull_head.outputs.latest_hash }} with: + token: ${{ steps.token.outputs.token }} commit-message: "chore: update amp-embedded-infra-lib hash to ${{ steps.pull_head.outputs.latest_hash }}" title: "chore: update amp-embedded-infra-lib hash to ${{ steps.pull_head.outputs.latest_hash }}" body: |