mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-10 03:21:38 +08:00
Fix compatibility issue with Cygwin sh
``` D:\a\_temp\00683b68-582f-4719-bd7a-9e98dd7975b7.sh: line 1: set: - : invalid option set: usage: set [-abefhkmnptuvxBCEHPT] [-o option-name] [--] [-] [arg ...] ```
This commit is contained in:
@@ -46,3 +46,11 @@ runs:
|
||||
INPUT_TOOL: ${{ inputs.tool }}
|
||||
INPUT_CHECKSUM: ${{ inputs.checksum }}
|
||||
INPUT_FALLBACK: ${{ inputs.fallback }}
|
||||
if: runner.os != 'Windows'
|
||||
- run: bash --noprofile --norc "${GITHUB_ACTION_PATH:?}/main.sh"
|
||||
shell: bash
|
||||
env:
|
||||
INPUT_TOOL: ${{ inputs.tool }}
|
||||
INPUT_CHECKSUM: ${{ inputs.checksum }}
|
||||
INPUT_FALLBACK: ${{ inputs.fallback }}
|
||||
if: runner.os == 'Windows'
|
||||
|
||||
Reference in New Issue
Block a user