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 e15aee4 commit 9047b05
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
- name: Check for changes in docs/ or mkdocs.yml
id: check_changes
run: |
git diff --name-only origin/master -- > changed_files.txt
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
Expand All @@ -50,9 +51,15 @@ jobs:
if: env.changes_detected == 'true'
run: mkdocs build

- name: Install Ruby and Bundler
- name: Install Ruby
if: env.changes_detected == 'true'
run: sudo apt-get install -y ruby-full
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'

- name: Install Bundler
if: env.changes_detected == 'true'
run: gem install bundler

- name: Install HTML Proofer
if: env.changes_detected == 'true'
Expand Down

0 comments on commit 9047b05

Please sign in to comment.