From 48b0e13511ef1893e9e9b5ba18f16cef4790ed14 Mon Sep 17 00:00:00 2001 From: Manh Cao Date: Fri, 20 Sep 2024 11:38:45 +0700 Subject: [PATCH] fix rule get CHANGED_PROTOCOLS --- .github/workflows/validate-config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-config.yml b/.github/workflows/validate-config.yml index 62d83d4..4376fc2 100644 --- a/.github/workflows/validate-config.yml +++ b/.github/workflows/validate-config.yml @@ -34,5 +34,5 @@ jobs: - name: Validate JSON files run: | - CHANGED_PROTOCOLS=$(git diff --name-only $HEAD_SHA $MAIN_SHA -- 'protocols/*' | grep '^protocols/' | xargs -L1 dirname | sed 's|protocols/||' | sort -u) + CHANGED_PROTOCOLS=$(git diff --name-only $HEAD_SHA $MAIN_SHA -- 'protocols/*' | grep -v '^D' | grep '^protocols/' | xargs -L1 dirname | sed 's|protocols/||' | sort -u) CHANGED_PROTOCOLS=$CHANGED_PROTOCOLS node validate-config.js \ No newline at end of file