docs: generate config docs #7
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 status --porcelain` ]]; then | |
git config --local user.email "[email protected]" | |
git config --local user.name "TiltCamp" | |
git add CONFIG.md | |
git commit -m "docs: generate config docs" | |
git push | |
else | |
echo "No changes to commit" | |
fi |