From 99455e36deaaa9c713e1bfff2242db10e33547fb Mon Sep 17 00:00:00 2001 From: Moritz Date: Fri, 12 Jan 2024 15:41:35 +0100 Subject: [PATCH 1/2] Add submodules support to `health.yaml` --- .github/workflows/health.yaml | 5 +++++ .github/workflows/health_base.yaml | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml index 831b5a49..15b38a48 100644 --- a/.github/workflows/health.yaml +++ b/.github/workflows/health.yaml @@ -83,6 +83,11 @@ on: default: false required: false type: boolean + checkout_submodules: + description: Whether to checkout submodules of git repositories. + default: false + required: false + type: boolean jobs: version: diff --git a/.github/workflows/health_base.yaml b/.github/workflows/health_base.yaml index dd38f7bc..92a451a6 100644 --- a/.github/workflows/health_base.yaml +++ b/.github/workflows/health_base.yaml @@ -50,6 +50,11 @@ on: 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 @@ jobs: - 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/ From d8e8b7451a060415f683eee1b588db6c49d28758 Mon Sep 17 00:00:00 2001 From: Moritz Date: Fri, 12 Jan 2024 17:35:43 +0100 Subject: [PATCH 2/2] Forward parameter --- .github/workflows/health.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml index 15b38a48..46cad959 100644 --- a/.github/workflows/health.yaml +++ b/.github/workflows/health.yaml @@ -100,7 +100,7 @@ jobs: 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 @@ -111,6 +111,7 @@ jobs: 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') }} @@ -122,6 +123,7 @@ jobs: 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') }} @@ -135,6 +137,7 @@ jobs: 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') }} @@ -146,6 +149,7 @@ jobs: 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') }} @@ -157,6 +161,7 @@ jobs: 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]