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
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/ios-selfhosted-nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ios-selfhosted-on-demand-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down