diff --git a/.github/workflows/move-to-main-repo.yaml b/.github/workflows/move-to-main-repo.yaml index a76f1cf..03b20af 100644 --- a/.github/workflows/move-to-main-repo.yaml +++ b/.github/workflows/move-to-main-repo.yaml @@ -13,13 +13,6 @@ jobs: GH_TOKEN: ${{ github.token }} 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: @@ -60,6 +53,13 @@ jobs: git config --global user.email "github-actions@github.com" git config --global user.name "GitHub Actions" + - 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: Create PR if files found if: ${{ env.files_found }} == "true" env: