Skip to content

Commit

Permalink
Sed to strip leading path from file list entries
Browse files Browse the repository at this point in the history
  • Loading branch information
calebofearth committed Feb 9, 2024
1 parent 0d652a9 commit 4c2a2ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pre-run-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c2a2ac

Please sign in to comment.