Skip to content

Update Taskade link to point to the open-source repository and enhanc… #18

Update Taskade link to point to the open-source repository and enhanc…

Update Taskade link to point to the open-source repository and enhanc… #18

name: Update GitBook Documentation
on:
push:
branches: [ main ]
paths: [ 'README.md' ]
pull_request:
branches: [ main ]
paths: [ 'README.md' ]
jobs:
update-gitbook:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
- name: Run GitBook update script
run: node .github/scripts/update-gitbook.js
- name: Commit and push changes
if: github.event_name == 'push'
run: |
git config --local user.email "ammari.ali.0001@gmail.com"
git config --local user.name "aliammari1"
git add docs/ SUMMARY.md
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "🤖 Auto-update GitBook documentation from README"
git push
fi