From 8a23256c748b6a82ceb0514f94bec5a79ce44b44 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 10 Mar 2025 15:42:35 +0100 Subject: [PATCH] WF --- .github/workflows/move-to-main-repo.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index b1978bc..02a5d36 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -8,9 +8,16 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - env: - GH_TOKEN: ${{ github.token }} + pull-requests: write + steps: + - name: Generate a token + id: generate-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Checkout repository uses: actions/checkout@v4 with: @@ -53,6 +60,8 @@ jobs: - name: Create PR if files found if: env.files_found == 'true' + env: + GH_TOKEN: ${{ steps.generate-token.outputs.token }} run: | target_repo="community-scripts/ProxmoxVE"