From d8cd257415323a3ff0b724f333d75c764cde41ff Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Thu, 15 Jan 2026 12:20:25 -0600 Subject: [PATCH 1/3] chore: Add checkout submodules Signed-off-by: Roger Barker --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index 60e1fb1..ebb7dae 100644 --- a/action.yml +++ b/action.yml @@ -16,6 +16,10 @@ inputs: description: 'Depth of commit history to fetch' required: false default: '0' + checkout-submodules: + description: 'Whether to checkout submodules (true/false/recursive)' + default: 'false' + required: false setup-node: description: 'Whether to setup Node.js' required: false @@ -200,6 +204,7 @@ runs: echo "::group::Checkout Code Parameters" echo "Ref: ${{ inputs.checkout-ref }}" echo "Fetch Depth: ${{ inputs.checkout-fetch-depth }}" + echo "Submodules: ${{ inputs.checkout-submodules }}" echo "::endgroup::" - name: Checkout Code @@ -208,6 +213,7 @@ runs: if: ${{ inputs.checkout == 'true' }} with: fetch-depth: ${{ inputs.checkout-fetch-depth }} + submodules: ${{ inputs.checkout-submodules }} ref: ${{ inputs.checkout-ref }} token: ${{ inputs.checkout-token }} From 86af0ef3b17a789a85d05450797de3e86e037d35 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Thu, 15 Jan 2026 12:26:28 -0600 Subject: [PATCH 2/3] chore: Update README and test.yml Signed-off-by: Roger Barker --- .github/workflows/test.yml | 2 ++ README.md | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6f8f5c8..dccb365 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,7 @@ jobs: checkout-fetch-depth: 0 checkout-ref: main checkout-token: ${{ secrets.GITHUB_TOKEN }} + checkout-submodules: false setup-java: true java-distribution: 'temurin' java-version: '25' @@ -126,6 +127,7 @@ jobs: checkout: true checkout-fetch-depth: 0 checkout-ref: main + checkout-submodules: false checkout-token: ${{ secrets.GITHUB_TOKEN }} - name: Verify Checkout Outputs diff --git a/README.md b/README.md index a8f7ad5..43470f3 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,13 @@ Common steps for initializing a job for GitHub actions. This composite action co **Repository Checkout** -| Input | Description | Required | Default | -|----------------------|----------------------------------------------------------|----------|---------| -| checkout | Whether to checkout the repository | No | - | -| checkout-ref | The branch, tag or SHA to checkout | No | - | -| checkout-token | Personal access token (PAT) used to fetch the repository | No | - | -| checkout-fetch-depth | Depth of commit history to fetch | No | 0 | +| Input | Description | Required | Default | Options | +|----------------------|----------------------------------------------------------|-----------------------------|---------|----------------------------| +| checkout | Whether to checkout the repository | No | - | `true`/`false` | +| checkout-ref | The branch, tag or SHA to checkout | No | - | any `branch`/`tag`/`SHA` | +| checkout-token | Personal access token (PAT) used to fetch the repository | No | - | `Token` used for checkout | +| checkout-fetch-depth | Depth of commit history to fetch | No | 0 | `0` (full)/`1`/`2`/... | +| checkout-submodules | | Whether to fetch submodules | false | `true`/`false`/`recursive` | **Java** From 4a99fe8005abb1cad5aa61e5fa9449a52c08a2b8 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Thu, 15 Jan 2026 12:30:11 -0600 Subject: [PATCH 3/3] chore: Update table in readme.md Signed-off-by: Roger Barker --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 43470f3..10547a4 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,13 @@ Common steps for initializing a job for GitHub actions. This composite action co **Repository Checkout** -| Input | Description | Required | Default | Options | -|----------------------|----------------------------------------------------------|-----------------------------|---------|----------------------------| -| checkout | Whether to checkout the repository | No | - | `true`/`false` | -| checkout-ref | The branch, tag or SHA to checkout | No | - | any `branch`/`tag`/`SHA` | -| checkout-token | Personal access token (PAT) used to fetch the repository | No | - | `Token` used for checkout | -| checkout-fetch-depth | Depth of commit history to fetch | No | 0 | `0` (full)/`1`/`2`/... | -| checkout-submodules | | Whether to fetch submodules | false | `true`/`false`/`recursive` | +| Input | Description | Required | Default | Options | +|----------------------|----------------------------------------------------------|----------|---------|----------------------------| +| checkout | Whether to checkout the repository | No | - | `true`/`false` | +| checkout-ref | The branch, tag or SHA to checkout | No | - | any `branch`/`tag`/`SHA` | +| checkout-token | Personal access token (PAT) used to fetch the repository | No | - | `Token` used for checkout | +| checkout-fetch-depth | Depth of commit history to fetch | No | 0 | `0` (full)/`1`/`2`/... | +| checkout-submodules | Whether to fetch submodules | No | false | `true`/`false`/`recursive` | **Java**