Skip to content

Commit

Permalink
PalisadoesFoundation#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 0a5ab43 commit 30811a5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -583,18 +583,15 @@ jobs:
env:
PR_BRANCH: ${{ github.event.pull_request.head.ref }}
PR_REPO: ${{ github.event.pull_request.head.repo.full_name }}
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 fetch origin ${{ github.head_ref }}
git checkout ${{ github.head_ref }}
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 push origin HEAD:${{ env.PR_BRANCH }}
git push origin HEAD:${{ github.head_ref }}
else
echo "No changes to commit"
fi

0 comments on commit 30811a5

Please sign in to comment.