Skip to content

Commit

Permalink
Fix incorrect path found for yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
RCheesley committed Nov 3, 2024
1 parent 04a12c4 commit f6a6286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
id: changes
run: |
git fetch origin ${{ github.event.pull_request.base.ref }} # Fetch the base branch
CHANGED_FILES=$(git diff --name-only origin/${{ github.event.pull_request.base.ref }} ${{ github.sha }} | grep '^docs/' | tr '\n' ' ')
CHANGED_FILES=$(git diff --name-only origin/${{ github.event.pull_request.base.ref }} ${{ github.sha }} | grep '^docs/' | grep -v '.doctor-rst.yaml' | tr '\n' ' ')
echo "CHANGED_FILES=$CHANGED_FILES" >> $GITHUB_ENV
- name: Cache DOCtor-RST
Expand All @@ -85,7 +85,7 @@ jobs:
if: env.CHANGED_FILES != ''
run: |
for file in ${{ env.CHANGED_FILES }}; do
docker run --rm -v "${{ github.workspace }}:/github/workspace" -w /github/workspace oskarstark/doctor-rst --short --error-format=github --cache-file=/github/workspace/.cache/doctor-rst.cache $file
docker run --rm -v "${{ github.workspace }}:/github/workspace" -w /github/workspace oskarstark/doctor-rst --short --error-format=github --config /github/workspace/docs/.doctor-rst.yaml --cache-file=/github/workspace/.cache/doctor-rst.cache $file
done
env:
DOCS_DIR: 'docs/'

0 comments on commit f6a6286

Please sign in to comment.