Skip to content

Commit

Permalink
pull-request.yml updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gautam-divyanshu committed Jan 18, 2025
1 parent ef48f17 commit c7cbc61
Show file tree
Hide file tree
Showing 712 changed files with 32 additions and 20,039 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,38 @@ jobs:
docker stop talawa-admin-app-container
docker rm talawa-admin-app-container
generate-docs:
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Checkout the Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate Documentation
run: npm run generate-docs

- name: Commit and Push Changes
env:
HEAD_REF: ${{ github.head_ref }}
run: |
if [[ $(git status --porcelain) ]]; then
echo "Changes detected. Auto-committing updates."
git config user.name "gautam-divyanshu"
git config user.email "[email protected]"
git add --all
git commit -m "Auto-generate documentation"
if ! git push origin HEAD:"$HEAD_REF"; then
echo "Failed to push changes. Please check if you have the correct permissions."
exit 1
fi
else
echo "No changes detected."
fi
Test-Docusaurus-Deployment:
name: Test Deployment to https://docs-admin.talawa.io
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Check warning on line 1 in .husky/pre-commit

View workflow job for this annotation

GitHub Actions / Performs linting, formatting, type-checking, checking for different source and target branch

File ignored by default.
npm run generate-docs
# npm run generate-docs
npm run format:fix
# npm run lint:fix
npm run lint-staged
Expand Down
28 changes: 0 additions & 28 deletions docs/docs/auto-docs/App/functions/default.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/docs/auto-docs/Constant/constant/variables/AUTH_TOKEN.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c7cbc61

Please sign in to comment.