diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index aaa184c..c3d8448 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -16,18 +16,19 @@ jobs: id: generate-token uses: actions/create-github-app-token@v1 with: - app-id: ${{ vars.MAIN_APP_ID }} - private-key: ${{ secrets.MAIN_APP_PRIVATE_KEY }} + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} - name: Checkout repository uses: actions/checkout@v4 with: ref: main + token: ${{ steps.generate-token.outputs.token }} - name: List Issues in Repository id: list_issues env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ steps.generate-token.outputs.token }} run: | echo "Filtering Issues with Label MigrationTest" @@ -92,6 +93,8 @@ jobs: git commit -m "$commit_message" + gh auth status + git push upstream "$branch_name" gh pr create --base main --head "$branch_name" --title "$commit_message" --body "This PR adds the script files for $script_name." -R $target_repo