Skip to content

Commit

Permalink
change the bash test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleidukos committed Mar 7, 2024
1 parent 775ab2d commit 7181cb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,23 @@ runs:
echo "::debug:: windows: ${{ inputs.windows-version }}"
echo "::debug:: ubuntu: ${{ inputs.ubuntu-version }}"
if [[ -n "${{ inputs.windows-version }}" ]]
if [[ "${{ inputs.windows-version }}" != "" ]]
echo "::debug:: Windows explicit enabled: ${{ inputs.windows-version }}"
then echo "WINDOWS=--windows-version=${{ inputs.windows-version }}" >> $GITHUB_ENV
elif [[ ${{ inputs.windows }} == "true" ]]
echo "::debug:: Windows fallback enabled: ${{ inputs.windows }}"
then echo "WINDOWS=--windows" >> $GITHUB_ENV
fi
if [[ -n "${{ inputs.macos-version }}" ]]
if [[ "${{ inputs.macos-version }}" != "" ]]
echo "::debug:: macOS explicit version enabled: ${{ inputs.macos-version }}"
then echo "MACOS=--macos-version=${{ inputs.macos-version }}" >> $GITHUB_ENV
elif [[ ${{ inputs.macos }} == "true" ]]
echo "::debug:: macOS fallback enabled: ${{ inputs.macos }}"
then echo "MACOS=--macos" >> $GITHUB_ENV
fi
if [[ -n "${{ inputs.ubuntu-version }}" ]]
if [[ "${{ inputs.ubuntu-version }}" != "" ]]
echo "::debug:: Ubuntu explicit version enabled: ${{ inputs.ubuntu-version }}"
then echo "UBUNTU=--ubuntu-version=${{ inputs.ubuntu-version }}" >> $GITHUB_ENV
elif [[ ${{ inputs.ubuntu }} == "true" ]]
Expand Down

0 comments on commit 7181cb8

Please sign in to comment.