diff --git a/.github/workflows/validate-config.yml b/.github/workflows/validate-config.yml index 653f4f8..73b3169 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-status $HEAD_SHA $MAIN_SHA -- 'protocols/*' | grep -v '^D' | grep '^protocols/' | xargs -L1 dirname | sed 's|protocols/||' | sort -u) + CHANGED_PROTOCOLS=$(git diff --name-status $HEAD_SHA $MAIN_SHA -- 'protocols/*' | grep -v '^D' | awk '{print $2}' | grep '^protocols/' | xargs -L1 dirname | sed 's|protocols/||' | sort -u) CHANGED_PROTOCOLS=$CHANGED_PROTOCOLS node validate-config.js \ No newline at end of file