Skip to content

Commit

Permalink
#2970: autoGen-talawa-admin-docs-debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bint-Eve committed Jan 6, 2025
1 parent a39f982 commit 0a5ab43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -583,17 +583,17 @@ 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://[email protected]/${{ 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/
git add docs/docs/developer-guide/
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"
Expand Down

0 comments on commit 0a5ab43

Please sign in to comment.