diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index fcebb88..f82bde7 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -74,14 +74,14 @@ jobs: - name: Matrix Variables run: | - if [[ ${{ matrix.hwe_flavor }} == "main" ]]; then - if ${{ matrix.driver_version }} == "0" ]]; then + if [[ "${{ matrix.hwe_flavor }}" == "main" ]]; then + if "${{ matrix.driver_version }}" == "0" ]]; then echo "this workflow does not build main image without Nvidia drivers" exit 1 fi echo "IMAGE_NAME=${{ matrix.image_name }}-nvidia" >> $GITHUB_ENV else - echo "IMAGE_NAME=${{ matrix.image_name }}-${{ matrix.hwe_flavor }}${{ matrix.driver_version != "0" && '-nvidia' }}" >> $GITHUB_ENV + echo "IMAGE_NAME=${{ matrix.image_name }}-${{ matrix.hwe_flavor }}${{ matrix.driver_version != '0' && '-nvidia' }}" >> $GITHUB_ENV fi echo "SOURCE_IMAGE=${{ matrix.image_name }}-main" >> $GITHUB_ENV