feat(ci): use-git-clone/submodules default-on in action (main)
Runner fetches the composite action from @main. Propagates the default-on transport/submodules inputs and explicit flag forwarding. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -48,9 +48,10 @@ inputs:
|
|||||||
|
|
||||||
submodules:
|
submodules:
|
||||||
description: >
|
description: >
|
||||||
Set to "true" to clone the repository with --recurse-submodules.
|
Recurse submodules when cloning. Default "true". Set to "false"
|
||||||
|
to skip submodule init/update.
|
||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: 'true'
|
||||||
|
|
||||||
guest-os:
|
guest-os:
|
||||||
description: >
|
description: >
|
||||||
@@ -61,12 +62,14 @@ inputs:
|
|||||||
|
|
||||||
use-git-clone:
|
use-git-clone:
|
||||||
description: >
|
description: >
|
||||||
Set to "true" to clone the repository inside the VM rather than
|
Transport for the repo source. Default "true": clone inside the
|
||||||
transferring a zip from the host. Requires Git in the template (see
|
build VM (requires Git in the template — see
|
||||||
Install-CIToolchain-WinBuild2025.ps1 Step 12 / Install-CIToolchain-Linux2404.sh).
|
Install-CIToolchain-WinBuild2025.ps1 Step 12 /
|
||||||
Preferred for repositories larger than ~200 MB.
|
Install-CIToolchain-Linux2404.sh). Set to "false" for the
|
||||||
|
host-side variant: the host clones the repo and transfers a zip
|
||||||
|
to the guest (useful when the guest cannot reach Gitea).
|
||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: 'true'
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
description: >
|
description: >
|
||||||
@@ -269,8 +272,13 @@ runs:
|
|||||||
'--snapshot-name', $resolvedSnapshotName
|
'--snapshot-name', $resolvedSnapshotName
|
||||||
)
|
)
|
||||||
|
|
||||||
if ($env:INPUT_SUBMODULES -eq 'true') { $pyArgs += '--submodules' }
|
# Submodules and transport default to ON; pass the explicit
|
||||||
if ($env:INPUT_USE_GIT_CLONE -eq 'true') { $pyArgs += '--use-git-clone' }
|
# negative flag when the caller opted out so the Python default
|
||||||
|
# (also ON) is overridden deterministically.
|
||||||
|
if ($env:INPUT_SUBMODULES -eq 'false') { $pyArgs += '--no-submodules' }
|
||||||
|
else { $pyArgs += '--submodules' }
|
||||||
|
if ($env:INPUT_USE_GIT_CLONE -eq 'false') { $pyArgs += '--host-clone' }
|
||||||
|
else { $pyArgs += '--use-git-clone' }
|
||||||
if ($env:INPUT_USE_SHARED_CACHE -eq 'true') { $pyArgs += '--use-shared-cache' }
|
if ($env:INPUT_USE_SHARED_CACHE -eq 'true') { $pyArgs += '--use-shared-cache' }
|
||||||
if ($env:INPUT_SKIP_ARTIFACT -eq 'true') { $pyArgs += '--skip-artifact' }
|
if ($env:INPUT_SKIP_ARTIFACT -eq 'true') { $pyArgs += '--skip-artifact' }
|
||||||
if ($env:INPUT_EXTRA_GUEST_ENV_JSON -and $env:INPUT_EXTRA_GUEST_ENV_JSON -ne '{}') {
|
if ($env:INPUT_EXTRA_GUEST_ENV_JSON -and $env:INPUT_EXTRA_GUEST_ENV_JSON -ne '{}') {
|
||||||
|
|||||||
Reference in New Issue
Block a user