From b23d031ead8bb9aba011b716f7cab74c5dae0dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Thu, 3 Apr 2025 14:54:10 +0200 Subject: [PATCH] checkout submodules support (#10) --- .github/workflows/docker-reusable.yml | 7 +++++++ README.md | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/docker-reusable.yml b/.github/workflows/docker-reusable.yml index 221dc82..1093314 100644 --- a/.github/workflows/docker-reusable.yml +++ b/.github/workflows/docker-reusable.yml @@ -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 != '' }} diff --git a/README.md b/README.md index da0dad6..ee96725 100644 --- a/README.md +++ b/README.md @@ -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` |