Skip to content

Commit

Permalink
refactor: trying to fix the CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Almas-Ali committed May 31, 2024
1 parent 9047b05 commit c6e73d2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:
- name: Check for changes in docs/ or mkdocs.yml
id: check_changes
run: |
git fetch origin
git diff --name-only origin/main -- > changed_files.txt
if grep -qE '(^docs/|^mkdocs.yml)' changed_files.txt; then
echo "changes_detected=true" >> $GITHUB_ENV
else
if [ "$(git diff --quiet origin/master -- docs/ mkdocs.yml; echo $?)" -eq 0 ];
then
echo "changes_detected=false" >> $GITHUB_ENV
echo "No changes to docs/ and mkdocs.yml - exiting the build.";
else
echo "changes_detected=true" >> $GITHUB_ENV
echo "Changes detected in docs/ or mkdocs.yml - continuing the build.";
fi
- name: Set up Node.js
Expand Down

0 comments on commit c6e73d2

Please sign in to comment.