Bash is not performed in windows

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

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

inside entrypoint.sh I am doing the following calls

post_installation_hook=hook_post_${candidate}_${version}.sh
curl -o "$post_installation_hook" https://api.sdkman.io/2/hooks/post/$candidate/$version/$platform_param | bash
source "$post_installation_hook"
__sdkman_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" https://api.sdkman.io/2/hooks/post/$candidate/$version/$platform_param
bash "$post_installation_hook"

instead.

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