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}"