Skip to content

Commit 9abd4eb

Browse files
authored
chore: add workflow to verify that files are in LFS (#34727)
Our GitHub repository has 77 files that should have been in LFS, but aren't because a contributor didn't install LFS before contributing. This is an easy mistake to make. Add a GitHub workflow that will fail if there are any files that should have been in LFS, but aren't. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 265c6ea commit 9abd4eb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/check-lfs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Check all requires files are in LFS
2+
on:
3+
pull_request: {}
4+
5+
jobs:
6+
check-lfs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Check out repository
10+
uses: actions/checkout@v4
11+
with:
12+
# We don't actually care about LFS file contents, just their integrity.
13+
lfs: false
14+
- name: Check LFS pointers
15+
run: git lfs fsck --pointers

0 commit comments

Comments
 (0)