From 4c2a2ac590880d608fd15c39fc1f390ff217c27e Mon Sep 17 00:00:00 2001 From: Caleb Whitehead Date: Thu, 8 Feb 2024 16:39:30 -0800 Subject: [PATCH] Sed to strip leading path from file list entries --- .github/workflows/pre-run-check.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-run-check.yml b/.github/workflows/pre-run-check.yml index c12b7efdb..33c2c2c8c 100644 --- a/.github/workflows/pre-run-check.yml +++ b/.github/workflows/pre-run-check.yml @@ -31,10 +31,11 @@ jobs: -o -name "*.vh" \ -o -name "*.c" \ -o -name "*.h" \ - -o -name "pr_timestamp" | sort | tee $GITHUB_TEMP/file_list.txt + -o -name "pr_timestamp" | sort | tee $GITHUB_WORKSPACE/file_list.txt + sed -i "s,^$GITHUB_WORKSPACE/,," $GITHUB_WORKSPACE/file_list.txt - name: Run File Hash run: | - hash=$($GITHUB_WORKSPACE/.github/scripts/rtl_hash.sh $GITHUB_WORKSPACE $GITHUB_TEMP/file_list.txt) + hash=$($GITHUB_WORKSPACE/.github/scripts/rtl_hash.sh $GITHUB_WORKSPACE $GITHUB_WORKSPACE/file_list.txt) if [[ -z ${hash:+"empty"} ]]; then echo "Failed to run hash script" echo $hash