Skip to content

Commit 66ee606

Browse files
chensuyueYongbozzz
authored andcommitted
Fix input issue for manual-image-build.yml (opea-project#1666)
Signed-off-by: chensuyue <suyue.chen@intel.com> Signed-off-by: Zhu, Yongbo <yongbo.zhu@intel.com>
1 parent e4fc5a2 commit 66ee606

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/_example-workflow.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ on:
5050
type: boolean
5151

5252
jobs:
53+
####################################################################################################
54+
# Image Build
55+
####################################################################################################
5356
pre-build-image-check:
5457
runs-on: ubuntu-latest
5558
outputs:
@@ -64,9 +67,6 @@ jobs:
6467
echo "should_skip=false" >> $GITHUB_OUTPUT
6568
fi
6669
67-
####################################################################################################
68-
# Image Build
69-
####################################################################################################
7070
build-images:
7171
needs: [pre-build-image-check]
7272
if: ${{ needs.pre-build-image-check.outputs.should_skip == 'false' }}
@@ -133,7 +133,7 @@ jobs:
133133
run: |
134134
set -x
135135
run_compose="false"
136-
if [[ ${{ inputs.test_compose }} ]]; then
136+
if [[ "${{ inputs.test_compose }}" == "true" ]]; then
137137
if [[ "${{ needs.pre-build-image-check.outputs.should_skip }}" == "false" && "${{ needs.build-images.result}}" == "success" || "${{ needs.pre-build-image-check.outputs.should_skip }}" == "true" ]]; then
138138
run_compose="true"
139139
fi

.github/workflows/manual-example-workflow.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ on:
5252
type: string
5353
inject_commit:
5454
default: false
55-
description: "inject commit to docker images true or false"
55+
description: "inject commit to docker images"
5656
required: false
5757
type: boolean
5858
use_model_cache:
5959
default: false
60-
description: "use model cache true or false"
60+
description: "use model cache"
6161
required: false
6262
type: boolean
6363

.github/workflows/manual-image-build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ on:
3232
type: string
3333
inject_commit:
3434
default: false
35-
description: "inject commit to docker images true or false"
35+
description: "inject commit to docker images"
3636
required: false
37-
type: string
37+
type: boolean
3838

3939
jobs:
4040
get-test-matrix:

0 commit comments

Comments
 (0)