diff --git a/.github/workflows/cd_pipeline.yaml b/.github/workflows/cd_pipeline.yaml index fbf7f43..b40b411 100644 --- a/.github/workflows/cd_pipeline.yaml +++ b/.github/workflows/cd_pipeline.yaml @@ -8,8 +8,12 @@ on: targets: description: Targets required: true - default: "chrome,firefox" - type: string + default: '["chrome","firefox"]' + type: choice + options: + - '["chrome","firefox"]' + - '["chrome"]' + - '["firefox"]' firefox: description: Deploy Firefox type: boolean @@ -34,7 +38,7 @@ jobs: strategy: fail-fast: false matrix: - target: ${{ fromJSON(format('[%s]', github.event.inputs.targets || 'chrome,firefox')) }} + target: ${{ fromJSON(github.event.inputs.targets || '["chrome","firefox"]') }} steps: - uses: actions/checkout@main diff --git a/.github/workflows/pr_pipeline.yaml b/.github/workflows/pr_pipeline.yaml index 980847c..e187595 100644 --- a/.github/workflows/pr_pipeline.yaml +++ b/.github/workflows/pr_pipeline.yaml @@ -17,8 +17,12 @@ on: targets: description: Targets required: true - default: "chrome,firefox" - type: string + default: '["chrome","firefox"]' + type: choice + options: + - '["chrome","firefox"]' + - '["chrome"]' + - '["firefox"]' jobs: build: @@ -27,7 +31,7 @@ jobs: strategy: fail-fast: false matrix: - target: ${{ fromJSON(format('[%s]', github.event.inputs.targets || 'chrome,firefox')) }} + target: ${{ fromJSON(github.event.inputs.targets || '["chrome","firefox"]') }} steps: - uses: actions/checkout@main