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 d3c57fe commit 7437dbd
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -578,18 +578,19 @@ jobs:
- name: Check and Commit Documentation
run: |
# Check if there are any changes
# Checkout the PR branch using the dynamic reference
git fetch origin ${{ github.head_ref }}
git checkout ${{ github.head_ref }}
# Add all the generated documentation files
git add docs/docs/auto-docs/
git add docs/docs/developer-guide/
git add docs/docs/user-guide/

# Commit if there are changes
if [[ -n "$(git status --porcelain)" ]]; then
# Add all changes
git add docs/docs/auto-docs
git add docs/docs/user-guide
git add docs/docs/developer-guide
# Commit changes
git commit -m "docs: update auto-generated documentation [skip ci]"
# Push changes
git push
git push origin ${{ github.head_ref }}
else
echo "No changes to commit"
fi

0 comments on commit 7437dbd

Please sign in to comment.