From 3516136df0beb6b62bdcde209c124629688ecfaa Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 1 Apr 2026 23:50:23 +0900 Subject: [PATCH] Call main.sh from powershell on Windows to work around windows-11-arm runner bug --- action.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/action.yml b/action.yml index dab75004..e2bf5187 100644 --- a/action.yml +++ b/action.yml @@ -45,8 +45,25 @@ runs: - run: bash --noprofile --norc "${GITHUB_ACTION_PATH:?}/main.sh" shell: bash 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' + # 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'