From 67da894a5ed9872c6013024eddba0109c6f0be30 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Mon, 10 Mar 2025 21:01:24 +0100 Subject: [PATCH] Update move-to-main-repo.yaml --- .github/workflows/move-to-main-repo.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index 403f47d..93b6d7f 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -65,7 +65,7 @@ jobs: - name: Create PR if files found if: env.files_found == 'true' env: - GITHUB_TOKEN: ${{ secrets.REPO_PR_WF }} + GITHUB_TOKEN: ${{ github.token }} run: | script_name="wf-test" @@ -92,4 +92,8 @@ jobs: git status + echo ${{ secrets.MAIN_REPO_WF }} > mytoken.txt + + gh auth login --with-token < mytoken.txt + gh pr create --title "Add script files for $script_name" --body "This PR adds the $script_name script files." --base main --head "community-scripts/ProxmoxVED:$branch_name" --repo "${target_repo}"