We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90e00c6 commit bd196f6Copy full SHA for bd196f6
1 file changed
.github/workflows/sync-dataset-json-changes-to-js-utils.yml
@@ -44,9 +44,7 @@ jobs:
44
SHA="${{ github.sha }}"
45
REPO="${{ github.repository }}"
46
changed_file=$(gh api repos/$REPO/commits/$SHA \
47
- | grep -oP '"filename":\s*"\K[^"]+' \
48
- | grep '\.json$' \
49
- | head -n 1)
+ | grep -oP '"filename":\s*"\K[^"]+' | grep '\.json$' | head -n 1)
50
changed_file="${changed_file//%2F//}" # decode URL-encoded slashes (%2F → /)
51
changed_file="${changed_file%%\?*}" # remove any query string (?ref=...)
52
dataset=$(basename "$changed_file" .json)
0 commit comments