From ef4f1f16835b96c00430a3a194cd3215683b2758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=CC=8Cimon=20S=CC=8Cesta=CC=81k?= Date: Thu, 13 Nov 2025 15:33:42 +0100 Subject: [PATCH] Add Git LFS support to changelog generation action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../action.yml | 6 ++++++ .github/workflows/ios-selfhosted-nightly-build.yml | 7 +------ .github/workflows/ios-selfhosted-on-demand-build.yml | 3 ++- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/actions/universal-detect-changes-and-generate-changelog/action.yml b/.github/actions/universal-detect-changes-and-generate-changelog/action.yml index 68b71d6..c910133 100644 --- a/.github/actions/universal-detect-changes-and-generate-changelog/action.yml +++ b/.github/actions/universal-detect-changes-and-generate-changelog/action.yml @@ -19,6 +19,11 @@ inputs: cache_key_prefix: required: false description: 'Custom prefix for cache keys. If not provided, will use latest_builded_commit-. If provided, format will be {prefix}-latest_builded_commit-' + use_git_lfs: + required: false + description: 'Whether to download Git-LFS files during checkout. Default is false.' + type: boolean + default: false outputs: skip_build: @@ -41,6 +46,7 @@ runs: uses: actions/checkout@v4 with: fetch-depth: ${{ inputs.checkout_depth }} + lfs: ${{ inputs.use_git_lfs }} - name: Calculate cache keys id: cache_keys diff --git a/.github/workflows/ios-selfhosted-nightly-build.yml b/.github/workflows/ios-selfhosted-nightly-build.yml index b9a8b44..1b35256 100644 --- a/.github/workflows/ios-selfhosted-nightly-build.yml +++ b/.github/workflows/ios-selfhosted-nightly-build.yml @@ -72,12 +72,7 @@ jobs: with: checkout_depth: ${{ inputs.checkout_depth }} fallback_lookback: ${{ inputs.changelog_fallback_lookback }} - - - name: Checkout - if: ${{ steps.detect_changes.outputs.skip_build == 'false' && inputs.use_git_lfs }} - uses: actions/checkout@v4 - with: - lfs: ${{ inputs.use_git_lfs }} + use_git_lfs: ${{ inputs.use_git_lfs }} - name: Set changelog if: ${{ steps.detect_changes.outputs.skip_build == 'false' }} diff --git a/.github/workflows/ios-selfhosted-on-demand-build.yml b/.github/workflows/ios-selfhosted-on-demand-build.yml index 1c54498..d65d54d 100644 --- a/.github/workflows/ios-selfhosted-on-demand-build.yml +++ b/.github/workflows/ios-selfhosted-on-demand-build.yml @@ -77,9 +77,10 @@ jobs: with: checkout_depth: ${{ inputs.checkout_depth }} fallback_lookback: ${{ inputs.changelog_fallback_lookback }} + use_git_lfs: ${{ inputs.use_git_lfs }} - name: Checkout - if: ${{ inputs.use_git_lfs || inputs.changelog != '' }} + if: ${{ inputs.changelog != '' }} uses: actions/checkout@v4 with: lfs: ${{ inputs.use_git_lfs }}