From b3dfd5b95bce4f2838eb2e0b067491210b74b190 Mon Sep 17 00:00:00 2001 From: hansjoergventx Date: Sun, 22 Oct 2023 01:07:14 +0200 Subject: [PATCH] chore: fix template-sync --- .github/workflows/template-sync.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/template-sync.yml b/.github/workflows/template-sync.yml index f66d12c..63e00e8 100644 --- a/.github/workflows/template-sync.yml +++ b/.github/workflows/template-sync.yml @@ -11,15 +11,22 @@ jobs: repo-sync: runs-on: ubuntu-latest steps: + - name: Generate token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.PRIVATE_KEY }} + - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: - token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + token: ${{ steps.app-token.outputs.token }} - name: actions-template-sync uses: AndreasAugustin/actions-template-sync@v0.6.0-draft with: - github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + github_token: ${{ steps.app-token.outputs.token }} source_repo_path: ventx/stackx-template-terraform pr_labels: chore,template-sync pr_title: "chore: upstream merge template repository"