Skip to content

Commit ef4f1f1

Browse files
Šimon Šestákclaude
andcommitted
Add Git LFS support to changelog generation action
Propagates the use_git_lfs input parameter from iOS workflows to the universal-detect-changes-and-generate-changelog action, enabling LFS files to be downloaded during the initial checkout when needed. This eliminates the need for duplicate checkout steps and ensures LFS files are available throughout the entire workflow execution. Changes: - Add use_git_lfs input parameter to changelog action - Pass LFS parameter to checkout in the action - Propagate LFS input from iOS workflows to the action - Remove redundant checkout step from nightly workflow - Simplify on-demand workflow checkout condition 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 8f0b3d1 commit ef4f1f1

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/actions/universal-detect-changes-and-generate-changelog/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ inputs:
1919
cache_key_prefix:
2020
required: false
2121
description: 'Custom prefix for cache keys. If not provided, will use latest_builded_commit-. If provided, format will be {prefix}-latest_builded_commit-'
22+
use_git_lfs:
23+
required: false
24+
description: 'Whether to download Git-LFS files during checkout. Default is false.'
25+
type: boolean
26+
default: false
2227

2328
outputs:
2429
skip_build:
@@ -41,6 +46,7 @@ runs:
4146
uses: actions/checkout@v4
4247
with:
4348
fetch-depth: ${{ inputs.checkout_depth }}
49+
lfs: ${{ inputs.use_git_lfs }}
4450

4551
- name: Calculate cache keys
4652
id: cache_keys

.github/workflows/ios-selfhosted-nightly-build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,7 @@ jobs:
7272
with:
7373
checkout_depth: ${{ inputs.checkout_depth }}
7474
fallback_lookback: ${{ inputs.changelog_fallback_lookback }}
75-
76-
- name: Checkout
77-
if: ${{ steps.detect_changes.outputs.skip_build == 'false' && inputs.use_git_lfs }}
78-
uses: actions/checkout@v4
79-
with:
80-
lfs: ${{ inputs.use_git_lfs }}
75+
use_git_lfs: ${{ inputs.use_git_lfs }}
8176

8277
- name: Set changelog
8378
if: ${{ steps.detect_changes.outputs.skip_build == 'false' }}

.github/workflows/ios-selfhosted-on-demand-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ jobs:
7777
with:
7878
checkout_depth: ${{ inputs.checkout_depth }}
7979
fallback_lookback: ${{ inputs.changelog_fallback_lookback }}
80+
use_git_lfs: ${{ inputs.use_git_lfs }}
8081

8182
- name: Checkout
82-
if: ${{ inputs.use_git_lfs || inputs.changelog != '' }}
83+
if: ${{ inputs.changelog != '' }}
8384
uses: actions/checkout@v4
8485
with:
8586
lfs: ${{ inputs.use_git_lfs }}

0 commit comments

Comments
 (0)