Bash is not performed in windows

Currently, I am creating a github composite action sdkman-action

    - id: sdkman
      run: ./ ${{ inputs.candidate }} ${{ inputs.version }} $(uname)
      shell: bash

inside I am doing the following calls

curl -o "$post_installation_hook"$candidate/$version/$platform_param | bash
source "$post_installation_hook"

And looks like is not running for windows. Build example.

From what I know, you can’t pipe in Windows (reserved Token). Furthermore, bash only exists, if WSL is installed. Dunno if that’s the case here.

Just try

curl -o "$post_installation_hook"$candidate/$version/$platform_param
bash "$post_installation_hook"


It didn’t work. I have changed the whole logic to download the file. Thanks!