From 4a4214dfb9de2bdc19a695915aec78f6f633e6d5 Mon Sep 17 00:00:00 2001 From: dengfuping Date: Mon, 2 Dec 2024 20:34:31 +0800 Subject: [PATCH] 111 --- .github/workflows/basic-workflow.yml | 20 ++++++++++---------- .github/workflows/javascript.yml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/basic-workflow.yml b/.github/workflows/basic-workflow.yml index abcc154..2031350 100644 --- a/.github/workflows/basic-workflow.yml +++ b/.github/workflows/basic-workflow.yml @@ -6,20 +6,20 @@ on: module: type: string required: true - description: 'The name of sample project.' + description: "The name of sample project." language: type: string required: true - description: 'The programming language used by the sample project.' + description: "The programming language used by the sample project." with_oceanbase_container: type: boolean required: false - description: 'Whether to use a pre-deployed OceanBase container in CI workflow.' + description: "Whether to use a pre-deployed OceanBase container in CI workflow." default: true oceanbase_image_tag: type: string required: false - description: 'The tag of OceanBase CE Docker image.' + description: "The tag of OceanBase CE Docker image." concurrency: group: basic-ci-${{ github.event.pull_request.number || github.ref }}-${{ inputs.module }} @@ -35,14 +35,14 @@ jobs: if: ${{ inputs.language == 'golang' }} uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: "1.20" - name: Setup Java env if: ${{ inputs.language == 'java' }} uses: actions/setup-java@v4 with: - java-version: '8' - distribution: 'zulu' - cache: 'maven' + java-version: "8" + distribution: "zulu" + cache: "maven" - name: Setup Python env if: ${{ inputs.language == 'python' }} uses: actions/setup-python@v4 @@ -58,8 +58,8 @@ jobs: if: ${{ inputs.with_oceanbase_container }} uses: oceanbase/setup-oceanbase-ce@v1 with: - network: 'host' - image_tag: ${{ inputs.oceanbase_image_tag }} + network: "host" + image_tag: ${{ inputs.oceanbase_image_tag || '' }} - name: Run sample for ${{ inputs.module }} run: | cd ${{ inputs.language }}/${{ inputs.module }} || exit diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 637fb4b..3b708f9 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -25,4 +25,4 @@ jobs: language: "javascript" module: ${{ matrix.module.name }} with_oceanbase_container: ${{ matrix.module.with_oceanbase_container }} - oceanbase_image_tag: ${{ matrix.module.oceanbase_image_tag || 'latest'}} + oceanbase_image_tag: ${{ matrix.module.oceanbase_image_tag }}