Add submodules support to `health.yaml` (#223)

* Add submodules support to `health.yaml`

* Forward parameter
diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml
index 831b5a4..46cad95 100644
--- a/.github/workflows/health.yaml
+++ b/.github/workflows/health.yaml
@@ -83,6 +83,11 @@
         default: false
         required: false
         type: boolean
+      checkout_submodules:
+        description: Whether to checkout submodules of git repositories.
+        default: false
+        required: false
+        type: boolean
 
 jobs:
   version:
@@ -95,7 +100,7 @@
       warn_on: ${{ inputs.warn_on }}
       local_debug: ${{ inputs.local_debug }}
       use-flutter: ${{ inputs.use-flutter }}
-
+      checkout_submodules: ${{ inputs.checkout_submodules }}
   changelog:
     if: ${{ contains(inputs.checks, 'changelog') }}
     uses: ./.github/workflows/health_base.yaml
@@ -106,6 +111,7 @@
       warn_on: ${{ inputs.warn_on }}
       local_debug: ${{ inputs.local_debug }}
       use-flutter: ${{ inputs.use-flutter }}
+      checkout_submodules: ${{ inputs.checkout_submodules }}
 
   license:
     if: ${{ contains(inputs.checks, 'license') }}
@@ -117,6 +123,7 @@
       warn_on: ${{ inputs.warn_on }}
       local_debug: ${{ inputs.local_debug }}
       use-flutter: ${{ inputs.use-flutter }}
+      checkout_submodules: ${{ inputs.checkout_submodules }}
 
   coverage:
     if: ${{ contains(inputs.checks, 'coverage') }}
@@ -130,6 +137,7 @@
       coverage_web: ${{ inputs.coverage_web }}
       local_debug: ${{ inputs.local_debug }}
       use-flutter: ${{ inputs.use-flutter }}
+      checkout_submodules: ${{ inputs.checkout_submodules }}
 
   breaking:
     if: ${{ contains(inputs.checks, 'breaking') }}
@@ -141,6 +149,7 @@
       warn_on: ${{ inputs.warn_on }}
       local_debug: ${{ inputs.local_debug }}
       use-flutter: ${{ inputs.use-flutter }}
+      checkout_submodules: ${{ inputs.checkout_submodules }}
 
   do-not-submit:
     if: ${{ contains(inputs.checks, 'do-not-submit') }}
@@ -152,6 +161,7 @@
       warn_on: ${{ inputs.warn_on }}
       local_debug: ${{ inputs.local_debug }}
       use-flutter: ${{ inputs.use-flutter }}
+      checkout_submodules: ${{ inputs.checkout_submodules }}
 
   comment:
     needs: [version, changelog, license, coverage, breaking, do-not-submit]
diff --git a/.github/workflows/health_base.yaml b/.github/workflows/health_base.yaml
index dd38f7b..92a451a 100644
--- a/.github/workflows/health_base.yaml
+++ b/.github/workflows/health_base.yaml
@@ -50,6 +50,11 @@
         default: false
         required: false
         type: boolean
+      checkout_submodules:
+        description: Whether to checkout submodules of git repositories.
+        default: false
+        required: false
+        type: boolean
 
 jobs:
   health:
@@ -64,11 +69,13 @@
       - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
         with:
           path: current_repo/
+          submodules: ${{ inputs.checkout_submodules }}
       
       - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
         with:
           ref: ${{ github.event.pull_request.base.ref }}
           path: base_repo/
+          submodules: ${{ inputs.checkout_submodules }}
         if: ${{ inputs.check == 'coverage' }} || ${{ inputs.check == 'breaking' }}
 
       - run: mkdir -p current_repo/output/