Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
datasets/**/*.json filter=lfs diff=lfs merge=lfs -text
datasets/**/*.log filter=lfs diff=lfs merge=lfs -text
datasets/**/*.ndjson filter=lfs diff=lfs merge=lfs -text
datasets/**/*.csv filter=lfs diff=lfs merge=lfs -text
7 changes: 4 additions & 3 deletions .github/workflows/validate-lfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'datasets/**/*.log'
- 'datasets/**/*.json'
- 'datasets/**/*.ndjson'
- 'datasets/**/*.csv'

permissions:
contents: read
Expand Down Expand Up @@ -36,11 +37,11 @@ jobs:

mapfile -t files < <(
git diff --name-only --diff-filter=ACMRT "$BASE_SHA" "$HEAD_SHA" |
awk '/^datasets\/.*\.(log|json|ndjson)$/ { print }'
awk '/^datasets\/.*\.(log|json|ndjson|csv)$/ { print }'
)

if (( ${#files[@]} == 0 )); then
echo "No changed .log, .json, or .ndjson files to validate."
echo "No changed .log, .json, .ndjson, or .csv files to validate."
exit 0
fi

Expand All @@ -56,7 +57,7 @@ jobs:
done

if (( ${#failed_files[@]} != 0 )); then
echo "One or more changed .log, .json, or .ndjson files are not stored with Git LFS."
echo "One or more changed .log, .json, .ndjson, or .csv files are not stored with Git LFS."
echo "Failed files:"
printf ' - %s\n' "${failed_files[@]}"

Expand Down
Loading
Loading