Skip to content

Update docsupdater.yaml #47

Update docsupdater.yaml

Update docsupdater.yaml #47

Workflow file for this run

name: Update docs/docs/index.md
on:
push:
branches:
- master
jobs:
update-docs:
runs-on: ubuntu-latest
steps:z

Check failure on line 12 in .github/workflows/docsupdater.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/docsupdater.yaml

Invalid workflow file

You have an error in your yaml syntax on line 12
- 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