Update tests.yml

This commit is contained in:
Ace 2023-07-24 13:05:07 +02:00 committed by GitHub
parent 03af817ab8
commit 15728e5d39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,14 +36,19 @@ jobs:
pip install sphinxemoji sphinx_rtd_theme recommonmark pip install sphinxemoji sphinx_rtd_theme recommonmark
cd docsource cd docsource
make html && make github && cd .. 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 - name: push docs
if: steps.verify_diff.outputs.changed == 'true'
run: | run: |
git config user.name "github-actions" git config user.name "github-actions"
git config user.email "actions@github.com" git config user.email "actions@github.com"
git add docs/* git add docs/*
git commit -m "update docs" git commit -m "update docs [bot]"
git push git push
- name: Create artifact - name: Create artifact