chore: update documentation for clarity #50
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: Update docs/docs/index.md | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
update-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Generate docs/docs/index.md | |
run: | | |
echo "Generating docs/docs/index.md..." | |
cat README.md > docs/docs/index.md | |
- name: Commit changes | |
run: | | |
git add docs/docs/index.md | |
if [ -n "$(git status --porcelain)" ]; then | |
git commit -m "Update docs/docs/index.md" | |
git push | |
else | |
echo "No changes to commit" | |
fi |