Skip to content

Commit

Permalink
test commit 2
Browse files Browse the repository at this point in the history
  • Loading branch information
KasukabeDefenceForce committed Apr 16, 2024
1 parent 2f8adeb commit 81bd934
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,19 @@ jobs:
- name: Check for changes in documentation
run: |
if git diff origin/master..."$(git rev-parse --abbrev-ref HEAD)" --name-only | grep -q 'docs'; then
num_files=$(git diff --name-only origin/master...HEAD | grep '^docs/' | wc -l)
echo "Changes found in documentation files: $num_files"
echo "No changes found in documentation files"
exit 1
else
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
fi
id: docs_check
continue-on-error: true

- name: Print Exit code
run: |
echo "Exit code of 'docs_check': ${{ steps.docs_check.outcome}}"
echo "Exit code of 'docs_check': ${{ steps.docs_check.outcome }}"
- name: Setup environment
uses: conda-incubator/setup-miniconda@v2
Expand Down

0 comments on commit 81bd934

Please sign in to comment.