Skip to content

Commit bd196f6

Browse files
committed
Merged lines
1 parent 90e00c6 commit bd196f6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/sync-dataset-json-changes-to-js-utils.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ jobs:
4444
SHA="${{ github.sha }}"
4545
REPO="${{ github.repository }}"
4646
changed_file=$(gh api repos/$REPO/commits/$SHA \
47-
| grep -oP '"filename":\s*"\K[^"]+' \
48-
| grep '\.json$' \
49-
| head -n 1)
47+
| grep -oP '"filename":\s*"\K[^"]+' | grep '\.json$' | head -n 1)
5048
changed_file="${changed_file//%2F//}" # decode URL-encoded slashes (%2F → /)
5149
changed_file="${changed_file%%\?*}" # remove any query string (?ref=...)
5250
dataset=$(basename "$changed_file" .json)

0 commit comments

Comments
 (0)