ci: fix `gh` login before merge attempt (#895)

Andrey Nering created

Change summary

.github/workflows/build.yml | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

.github/workflows/build.yml 🔗

@@ -23,6 +23,8 @@ jobs:
         with:
           github-token: "${{ secrets.GITHUB_TOKEN }}"
       - run: |
+          echo "Logging in..."
+          echo "${{ secrets.PERSONAL_ACCESS_TOKEN }}" | gh auth login --with-token
           echo "Approving..."
           gh pr review --approve "$PR_URL"
           echo "Merging..."