Skip to content

Commit c81f25c

Browse files
authored
Add submodule support to publish.yaml (#225)
1 parent b51c356 commit c81f25c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ on:
7777
default: true
7878
required: false
7979
type: boolean
80+
checkout_submodules:
81+
description: >-
82+
Whether to checkout submodules of git repositories.
83+
default: false
84+
required: false
85+
type: boolean
8086

8187
jobs:
8288
# Note that this job does not require the specified environment.
@@ -91,10 +97,14 @@ jobs:
9197
runs-on: ubuntu-latest
9298
steps:
9399
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
100+
with:
101+
submodules: ${{ inputs.checkout_submodules }}
102+
94103
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225
95104
if: ${{ inputs.use-flutter }}
96105
with:
97106
channel: ${{ inputs.sdk }}
107+
98108

99109
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d
100110
if: ${{ !inputs.use-flutter }}

0 commit comments

Comments
 (0)