mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-08 18:05:42 +08:00
Call main.sh from powershell on Windows to work around windows-11-arm
runner bug
This commit is contained in:
17
action.yml
17
action.yml
@@ -45,8 +45,25 @@ runs:
|
|||||||
- run: bash --noprofile --norc "${GITHUB_ACTION_PATH:?}/main.sh"
|
- run: bash --noprofile --norc "${GITHUB_ACTION_PATH:?}/main.sh"
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
# NB: Sync with non-Windows case.
|
||||||
INPUT_TOOL: ${{ inputs.tool }}
|
INPUT_TOOL: ${{ inputs.tool }}
|
||||||
INPUT_CHECKSUM: ${{ inputs.checksum }}
|
INPUT_CHECKSUM: ${{ inputs.checksum }}
|
||||||
INPUT_FALLBACK: ${{ inputs.fallback }}
|
INPUT_FALLBACK: ${{ inputs.fallback }}
|
||||||
DEFAULT_GITHUB_TOKEN: ${{ github.token }}
|
DEFAULT_GITHUB_TOKEN: ${{ github.token }}
|
||||||
ACTION_USER_AGENT: ${{ github.action_repository }} (${{ github.action_ref }})
|
ACTION_USER_AGENT: ${{ github.action_repository }} (${{ github.action_ref }})
|
||||||
|
if: runner.os != 'Windows'
|
||||||
|
# Workaround for https://github.com/actions/partner-runner-images/issues/169
|
||||||
|
# TODO: Is it necessary to retry for main.sh call? Or is this sufficient? https://github.com/taiki-e/install-action/pull/1647
|
||||||
|
- run: |
|
||||||
|
Set-StrictMode -Version Latest
|
||||||
|
$action_path = $env:GITHUB_ACTION_PATH
|
||||||
|
& bash --noprofile --norc "${action_path}/main.sh"
|
||||||
|
shell: powershell
|
||||||
|
env:
|
||||||
|
# NB: Sync with non-Windows case.
|
||||||
|
INPUT_TOOL: ${{ inputs.tool }}
|
||||||
|
INPUT_CHECKSUM: ${{ inputs.checksum }}
|
||||||
|
INPUT_FALLBACK: ${{ inputs.fallback }}
|
||||||
|
DEFAULT_GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
ACTION_USER_AGENT: ${{ github.action_repository }} (${{ github.action_ref }})
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
|||||||
Reference in New Issue
Block a user