[ci] fixed nightly build workflow (#1040)

pull/1015/head^2
Frank Lee 2022-05-31 10:43:18 +08:00 committed by GitHub
parent 9feff0f760
commit cfa6c1b46b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -9,10 +9,10 @@ on:
cuda_version:
type: choice
description: CUDA Version
default: 'all'
default: "all"
required: true
options:
- all
- "all"
- "11.3"
- "10.2"
jobs:
@ -25,7 +25,7 @@ jobs:
- id: set-matrix
run: |
[ "${{github.event.inputs.cuda_version}}" != "all" ] && matrix="[\"hpcaitech/cuda-conda:${{github.event.inputs.cuda_version}}\"]"
[ "${{github.event.inputs.cuda_version}}" == "all" ] && matrix="[\"hpcaitech/cuda-conda:11.3\", \"hpcaitech/cuda-conda:10.2\"]"
[ "${{github.event.inputs.cuda_version}}" == "all" || "${{github.event.inputs.cuda_version}}" == "" ] && matrix="[\"hpcaitech/cuda-conda:11.3\", \"hpcaitech/cuda-conda:10.2\"]"
echo $matrix
echo "::set-output name=matrix::{\"container\":$(echo $matrix)}"