Skip to content

Commit

Permalink
Fixing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KasukabeDefenceForce committed Apr 22, 2024
1 parent 24bbdac commit 9974f66
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: |
if git diff origin/master..."$(git rev-parse --abbrev-ref HEAD)" --name-only | cat | grep 'docs' | grep -q .; then
num_files=$(git diff --name-only origin/master...HEAD | grep '^docs/' | wc -l)
echo "No changes found in documentation files: $num_files"
echo "Changes found in documentation files: $num_files"
exit 0
else
echo "No changes found in documentation files"
Expand All @@ -73,26 +73,26 @@ jobs:
miniforge-version: latest
activate-environment: tardis
use-mamba: true
if: steps.docs_check.outcome == 'failure'
if: steps.docs_check.outcome == 'success'

- uses: actions/cache@v2
with:
path: /usr/share/miniconda3/envs/tardis
key: conda-linux-64-${{ hashFiles('conda-linux-64.lock') }}-${{ env.CACHE_NUMBER }}
id: cache-conda
if: steps.docs_check.outcome == 'failure'
if: steps.docs_check.outcome == 'success'

- name: Update environment
run: mamba update -n tardis --file conda-linux-64.lock
if: steps.cache-conda.outputs.cache-hit != 'true' && steps.docs_check.outcome == 'failure'
if: steps.cache-conda.outputs.cache-hit != 'true' && steps.docs_check.outcome == 'success'

- name: Install package
run: pip install -e .
if: steps.docs_check.outcome == 'failure'
if: steps.docs_check.outcome == 'success'

- name: Build documentation
run: cd docs/ && make html NCORES=auto
if: steps.docs_check.outcome == 'failure'
if: steps.docs_check.outcome == 'success'

- name: Set destination directory
run: |
Expand Down

0 comments on commit 9974f66

Please sign in to comment.