From b021b923f1444ce4ecd7e54621592f52dce18382 Mon Sep 17 00:00:00 2001 From: Venkateshprasad <32921645+ven-k@users.noreply.github.com> Date: Wed, 27 Sep 2023 16:03:20 +0530 Subject: [PATCH] ci: skip downstream tests and invalidation tests of PRs when changes are limited to `docs` dir --- .github/workflows/Downstream.yml | 2 ++ .github/workflows/Invalidations.yml | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index 519532d82b..63f7a36b52 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -4,6 +4,8 @@ on: branches: [master] tags: [v*] pull_request: + paths-ignore: + - 'docs/**' jobs: test: diff --git a/.github/workflows/Invalidations.yml b/.github/workflows/Invalidations.yml index 28b9ce2fad..d8f9dbe014 100644 --- a/.github/workflows/Invalidations.yml +++ b/.github/workflows/Invalidations.yml @@ -2,6 +2,8 @@ name: Invalidations on: pull_request: + paths-ignore: + - 'docs/**' concurrency: # Skip intermediate builds: always. @@ -30,7 +32,7 @@ jobs: - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-invalidations@v1 id: invs_default - + - name: Report invalidation counts run: | echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY