Skip to content

Commit 9793661

Browse files
committed
set default values if inputs context is unavailable
1 parent 42253cc commit 9793661

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build_artifacts.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,19 @@ jobs:
6565
if [[ ${{ github.event_name }} == "pull_request" ]];
6666
artifacts=("jax" ", jaxlib" ", jax-cuda-pjrt" ", jax-cuda-plugin")
6767
else
68-
if [[ ${{ inputs.build_jax }} == "1" ]]; then
68+
if [[ ${${{ inputs.build_jax }}:-0} == "1" ]]; then
6969
artifacts+="jax"
7070
fi
7171
72-
if [[ ${{ inputs.build_jaxlib }} == "1" ]]; then
72+
if [[ ${${{ inputs.build_jaxlib }}:-0} == "1" ]]; then
7373
artifacts+=", jaxlib"
7474
fi
7575
76-
if [[ ${{ inputs.build_jax_cuda_pjrt }} == "1" ]]; then
76+
if [[ ${${{ inputs.build_jax_cuda_pjrt }}:-0} == "1" ]]; then
7777
artifacts+=", jax-cuda-pjrt"
7878
fi
7979
80-
if [[ ${{ inputs.build_jax_cuda_plugin }} == "1" ]]; then
80+
if [[ ${${{ inputs.build_jax_cuda_plugin }}:-0} == "1" ]]; then
8181
artifacts+=", jax-cuda-plugin"
8282
fi
8383
fi

0 commit comments

Comments
 (0)