From d7bdd125a5347c6cc8685fa79995d35487659288 Mon Sep 17 00:00:00 2001 From: muraca Date: Tue, 3 Oct 2023 20:30:37 +0200 Subject: [PATCH] exclude target from find all Signed-off-by: muraca --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 066bd3b..fb5118a 100644 --- a/action.yml +++ b/action.yml @@ -24,9 +24,9 @@ runs: - if: ${{ inputs.all }} name: "Running TOML Sort check on all TOML files starting from current directory" shell: "bash" - run: find . -name "*.toml" | xargs -L1 toml-sort --check + run: find . -name "*.toml" -not -path "./target/*" | xargs -L1 toml-sort --check - if: ${{ !inputs.all }} name: "Running TOML Sort check on given files" shell: "bash" run: toml-sort --check {{ inputs.files }} - \ No newline at end of file +