Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Automated Documentation Generation | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
ref: testDocs | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- run: yarn | |
- run: yarn ci:generate-config-docs | |
- name: Commit and push changes | |
run: | | |
if ! git diff --cached --quiet; then | |
git config --local user.email "[email protected]" | |
git config --local user.name "TiltCamp" | |
git add . | |
git commit -m "docs: generate config docs" | |
git push | |
else | |
echo "No changes to commit" | |
fi |