From f6a6286a787779a403143a97fb480b288e8743da Mon Sep 17 00:00:00 2001 From: Ruth Cheesley Date: Sun, 3 Nov 2024 12:45:26 +0000 Subject: [PATCH] Fix incorrect path found for yaml file --- .github/workflows/linting.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 198be505..efe74b69 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -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 @@ -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/'