From 6e3103c0278521db482d73d237b65f66524cba49 Mon Sep 17 00:00:00 2001 From: dabico Date: Tue, 16 Jul 2024 16:31:27 +0200 Subject: [PATCH] Add option for checking out repository submodules --- README.md | 1 + action.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index e7faa64..13667f2 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ For default values you only need: | params | destination | default | |------------------------------|---------------------|--------------------------| | checkout-fetch-depth | fetch-depth | | +| checkout-submodules | submodules | | | checkout-path | path | | | checkout-ref | ref | | | checkout-repository | repository | ${{ github.repository }} | diff --git a/action.yml b/action.yml index 3e720b9..2df4fef 100644 --- a/action.yml +++ b/action.yml @@ -12,6 +12,10 @@ inputs: description: 'Number of commits to fetch' required: false + checkout-submodules: + description: 'Whether to fetch submodules' + required: false + checkout-path: description: 'Relative path under $GITHUB_WORKSPACE to place the repository' required: false @@ -105,6 +109,7 @@ runs: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: '${{ inputs.checkout-fetch-depth }}' + submodules: '${{ inputs.checkout-submodules }}' path: '${{ inputs.checkout-path }}' persist-credentials: '${{ inputs.checkout-persist-credentials }}' ref: '${{ inputs.checkout-ref }}'