Skip to content

Commit b167114

Browse files
committed
Add Git LFS support to CI/CD pipelines
- Configure GitHub Actions to pull LFS files during checkout - Add PostCheckout hook in Overcommit to ensure LFS files are pulled - Update both cicd.yml and docs.yml workflows with lfs: true option
1 parent d922519 commit b167114

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ jobs:
4949

5050
steps:
5151
- uses: actions/checkout@v4
52+
with:
53+
lfs: true
5254

5355
- name: Set up Ruby
5456
uses: ruby/setup-ruby@v1
@@ -97,6 +99,8 @@ jobs:
9799

98100
steps:
99101
- uses: actions/checkout@v4
102+
with:
103+
lfs: true
100104

101105
- name: Set up Ruby
102106
uses: ruby/setup-ruby@v1

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
steps:
2525
- name: Checkout
2626
uses: actions/checkout@v4
27+
with:
28+
lfs: true
2729

2830
- name: Setup Ruby for models guide generation (root Gemfile)
2931
uses: ruby/setup-ruby@v1

.overcommit.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ PostCheckout:
2929
quiet: true # Change all post-checkout hooks to only display output on failure
3030

3131
IndexTags:
32-
enabled: true # Generate a tags file with `ctags` each time HEAD changes
32+
enabled: true # Generate a tags file with `ctags` each time HEAD changes
33+
34+
LfsInstall:
35+
enabled: true
36+
description: 'Ensure Git LFS files are pulled'
37+
command: ['git', 'lfs', 'pull']

0 commit comments

Comments
 (0)