diff --git a/.github/workflows/android-cloud-check.yml b/.github/workflows/android-cloud-check.yml index 4425184..791ada4 100644 --- a/.github/workflows/android-cloud-check.yml +++ b/.github/workflows/android-cloud-check.yml @@ -39,6 +39,11 @@ on: required: false type: string default: "" + FETCH_DEPTH: + description: "Number of commits to fetch. 0 indicates all history for all branches and tags. Set to 0 if Danger cannot find merge base." + required: false + type: number + default: 1 secrets: GRADLE_CACHE_ENCRYPTION_KEY: @@ -60,6 +65,7 @@ jobs: uses: actions/checkout@v4 with: lfs: ${{ inputs.USE_GIT_LFS }} + fetch-depth: ${{ inputs.FETCH_DEPTH }} - name: Set up environment uses: futuredapp/.github/.github/actions/android-setup-environment@main with: diff --git a/.github/workflows/ios-kmp-selfhosted-test.yml b/.github/workflows/ios-kmp-selfhosted-test.yml index a3278da..9fc3350 100644 --- a/.github/workflows/ios-kmp-selfhosted-test.yml +++ b/.github/workflows/ios-kmp-selfhosted-test.yml @@ -46,6 +46,11 @@ on: description: "Path to directory containing Fastfile. If not specified, uses iosApp. Example: iosApp/appA" type: string required: false + fetch_depth: + description: "Number of commits to fetch. 0 indicates all history for all branches and tags. Set to 0 if Danger cannot find merge base." + type: number + required: false + default: 1 secrets: GRADLE_CACHE_ENCRYPTION_KEY: @@ -65,6 +70,7 @@ jobs: uses: actions/checkout@v4 with: lfs: ${{ inputs.use_git_lfs }} + fetch-depth: ${{ inputs.fetch_depth }} - name: Setup Java uses: actions/setup-java@v4 with: diff --git a/.github/workflows/ios-selfhosted-test.yml b/.github/workflows/ios-selfhosted-test.yml index b617f6c..5464263 100644 --- a/.github/workflows/ios-selfhosted-test.yml +++ b/.github/workflows/ios-selfhosted-test.yml @@ -19,6 +19,10 @@ on: description: 'Job timeout in minutes' type: number default: 30 + fetch_depth: + description: 'Number of commits to fetch. 0 indicates all history for all branches and tags. Set to 0 if Danger cannot find merge base.' + type: number + default: 1 secrets: GITHUB_TOKEN_DANGER: @@ -39,6 +43,7 @@ jobs: uses: actions/checkout@v4 with: lfs: ${{ inputs.use_git_lfs }} + fetch-depth: ${{ inputs.fetch_depth }} - name: Fastlane Test uses: futuredapp/.github/.github/actions/ios-fastlane-test@main