Skip to content

Commit

Permalink
Strip fragments
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Aug 8, 2024
1 parent bd0f7e5 commit 2edb002
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/lint-jsonschema/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ runs:
rc=1
fi
else
path=$location
# Strip fragments and prefix absolute paths with repo root
path=${location/\#*/}
if [[ "$location" == /* ]]; then
path=$(git rev-parse --show-toplevel)/$location
fi
if [[ ! -e "$path" ]]; then
err "$file references non-existent location $location"
rc=1
Expand Down

0 comments on commit 2edb002

Please sign in to comment.