From 0a5ab4316b1bcc62e46d4a5a829d1cc368a30c79 Mon Sep 17 00:00:00 2001 From: Rukh-Khan Date: Tue, 7 Jan 2025 01:30:12 +0530 Subject: [PATCH] #2970: autoGen-talawa-admin-docs-debugging --- .github/workflows/pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 2d0eb80613..063d3e713e 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -583,9 +583,10 @@ jobs: env: PR_BRANCH: ${{ github.event.pull_request.head.ref }} PR_REPO: ${{ github.event.pull_request.head.repo.full_name }} - PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} run: | # Use PAT for pushing + git remote set-url origin https://$GITHUB_TOKEN@github.com/${{ github.event.pull_request.head.repo.full_name }}.git git fetch origin ${{ env.PR_BRANCH }} git checkout ${{ env.PR_BRANCH }} git add docs/docs/auto-docs/ @@ -593,7 +594,6 @@ jobs: git add docs/docs/user-guide/ if [[ -n "$(git status --porcelain)" ]]; then git commit -m "docs: update auto-generated documentation [skip ci]" - git remote set-url origin https://x-access-token:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${{ env.PR_REPO }}.git git push origin HEAD:${{ env.PR_BRANCH }} else echo "No changes to commit"