checkout submodules support (#10)

This commit is contained in:
Adam Uhlíř 2025-04-03 14:54:10 +02:00 committed by GitHub
parent 7e01da7963
commit b23d031ead
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -49,6 +49,11 @@ on:
description: actions/checkout fetch-depth
required: false
type: string
checkout-submodules:
default: false
description: actions/checkout submodules
required: false
type: boolean
checkout-fetch-tags:
default: ''
description: actions/checkout fetch-tags
@ -76,6 +81,7 @@ env:
TAG_SHA_LONG: ${{ inputs.tag_sha_long }}
TAG_SUFFIX: ${{ inputs.tag_suffix }}
CHECKOUT_FETCH_DEPTH: ${{ inputs.checkout-fetch-depth }}
CHECKOUT_SUBMODULES: ${{ inputs.checkout-submodules }}
CHECKOUT_FETCH_TAGS: ${{ inputs.checkout-fetch-tags }}
amd64_builder: ${{ inputs.amd64_builder }}
arm64_builder: ${{ inputs.arm64_builder }}
@ -114,6 +120,7 @@ jobs:
with:
fetch-depth: ${{ env.CHECKOUT_FETCH_DEPTH }}
fetch-tags: ${{ env.CHECKOUT_FETCH_TAGS }}
submodules: ${{ env.CHECKOUT_SUBMODULES }}
- name: Secrets to variables
if: ${{ env.BUILD_ARGS != '' }}

View File

@ -31,6 +31,7 @@
| `tag_suffix` | Suffix for Docker images tag | `''` |
| `checkout-fetch-depth` | actions/checkout fetch-depth | `''` |
| `checkout-fetch-tags` | actions/checkout fetch-tags | `''` |
| `checkout-submodules` | actions/checkout submodules | `false` |
| `amd64_builder` | Builder for amd64 | `ubuntu-22.04` |
| `arm64_builder` | Builder for arm64 | `ubuntu-22.04-arm` |