From 36db205b2249b2394aedad894d76334bb886374f Mon Sep 17 00:00:00 2001 From: Anirudh Ramchandran Date: Thu, 6 Jun 2024 21:15:35 -0400 Subject: [PATCH] try updated workflow --- .github/workflows/license-checker.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index cd140ea2..df7e61f6 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -40,7 +40,13 @@ jobs: - name: Extract Files id: extract_files run: | - files=$(echo "${{ env.CLEAN_OUTPUT }}" | awk '/Files which failed the copyright check:/,/Additional information about this hook and copyright headers may be found here:/' | sed '1d;$d' | sed '/Some files are without a copyright note and a license header needs to be added:/d' | sed 's/^ *//') + files=$(echo "${{ env.CLEAN_OUTPUT }}" | awk ' + /Files which failed the copyright check:/, /Additional information about this hook and copyright headers may be found here:/ { + if ($0 !~ /Files which failed the copyright check:/ && $0 !~ /Additional information about this hook and copyright headers may be found here:/) print + } + /Some files are without a copyright note and a license header needs to be added:/, /Additional information about this hook and copyright headers may be found here:/ { + if ($0 !~ /Some files are without a copyright note and a license header needs to be added:/ && $0 !~ /Additional information about this hook and copyright headers may be found here:/) print + }' | sed 's/^ *//' | sed '/^$/d' | grep '^./') echo "FILES<> $GITHUB_ENV echo "$files" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV