From f212cdff47ea57b7193a52360361494d589e7696 Mon Sep 17 00:00:00 2001 From: sripwoud Date: Tue, 25 Jun 2024 13:45:45 +0200 Subject: [PATCH] feat: run slither matrix job only if pkg was modified --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 250e4ef..4289aba 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -153,7 +153,8 @@ jobs: workspace=$(jq -r '.name' packages/${{ matrix.dir }}/package.json) yarn workspace "$workspace" run compile - - name: Run slither + - if: contains(needs.get-changed-files.outputs.modified_files, ${{ matrix.dir }}) + name: Run slither uses: crytic/slither-action@v0.4.0 id: slither with: