Skip to content

Update Documentation #8

Update Documentation

Update Documentation #8

Workflow file for this run

name: Update Documentation
on:
schedule:
- cron: '0 0 * * *'
jobs:
update-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set Up Git
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "[email protected]"
- name: Run Update Script
run: |
chmod +x ./update_docs.sh
./update_docs.sh
- name: Commit and Push Changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git add -A
if git diff --cached --quiet; then
echo "No changes detected."
else
git commit -m "Automated update of documentation"
git push origin HEAD:${{ github.ref }}
fi