diff --git a/.github/workflows/buildAndDeployWebsite.yml b/.github/workflows/buildAndDeployWebsite.yml index a0d9f63cb9b..6011d980b8f 100644 --- a/.github/workflows/buildAndDeployWebsite.yml +++ b/.github/workflows/buildAndDeployWebsite.yml @@ -45,7 +45,7 @@ jobs: # jupyter nbconvert --ExecutePreprocessor.kernel_name="howbadismybatch-venv-kernel" --to notebook --allow-errors --execute HowBadIsMyBatch.ipynb # jupyter nbconvert --to html HowBadIsMyBatch.nbconvert.ipynb git add -A - git commit -m "updating data for batch codes" + git diff-index --quiet HEAD || git commit -m "updating data for batch codes" - name: Executing Intensivstationen.ipynb shell: bash -el {0} run: | @@ -53,7 +53,7 @@ jobs: DATAWRAPPER_API_TOKEN=${{ secrets.DATAWRAPPER_API_TOKEN }} jupyter nbconvert --ExecutePreprocessor.kernel_name="howbadismybatch-venv-kernel" --to notebook --allow-errors --execute Intensivstationen.ipynb jupyter nbconvert --to html Intensivstationen.nbconvert.ipynb git add -A - git commit -m "updating data for Intensivstationen" + git diff-index --quiet HEAD || git commit -m "updating data for Intensivstationen" - name: Pushing changes to GitHub Pages shell: bash -el {0} run: |