Skip to content

Automatically run GenerateDocs #21

Automatically run GenerateDocs

Automatically run GenerateDocs #21

Workflow file for this run

name: autogen-docs
run-name: Automatically run GenerateDocs
on:
schedule:
- cron: '45 10 * * TUE'
- cron: '45 10 * * THU'
- cron: '55 15 * * FRI'
jobs:
autogen-docs:
runs-on: macos-latest
permissions:
contents: write
defaults:
run:
working-directory: ./generate-docs
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Make the script file executable
run: |
echo "Making script file executable"
chmod +x ./GenerateDocs.sh
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Run GenerateDocs script
run: |
echo "Generating docs"
./GenerateDocs.sh
- name: Undo chmod
run: |
echo "Undoing script file chmod"
chmod -x ./GenerateDocs.sh
- name: Commit and push changes
run: |
echo "Committing and pushing changes to autogen-docs branch"
git config user.name github-actions
git config user.email [email protected]
git checkout -b autogen-docs
git add ../.
git commit -m "Automatically generated docs"
git push --set-upstream origin autogen-docs