Update tests.yml

This commit is contained in:
Ace
2023-07-24 13:05:07 +02:00
committed by GitHub
parent 03af817ab8
commit 15728e5d39

View File

@@ -36,14 +36,19 @@ jobs:
pip install sphinxemoji sphinx_rtd_theme recommonmark
cd docsource
make html && make github && cd ..
git status
- name: Check if there are any changes
id: verify_diff
run: |
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
- name: push docs
if: steps.verify_diff.outputs.changed == 'true'
run: |
git config user.name "github-actions"
git config user.email "actions@github.com"
git add docs/*
git commit -m "update docs"
git commit -m "update docs [bot]"
git push
- name: Create artifact