diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1341781..488b4ce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,6 +23,7 @@ jobs: echo "Hi from linux" echo "Hi from linux second line" windows: echo "Hi from windows" + windowsShell: cmd - uses: ./ with: diff --git a/dist/index.js b/dist/index.js index 835f380..37b2455 100644 --- a/dist/index.js +++ b/dist/index.js @@ -41,7 +41,7 @@ let builtInShells = { pwsh: 'pwsh -command "& \'{0}\'"', python: 'python {0}', sh: 'sh -e {0}', - cmd: '%ComSpec% /D /E:ON /V:OFF /S /C "CALL "{0}""', + cmd: 'cmd.exe /D /E:ON /V:OFF /S /C "CALL "{0}""', powershell: 'powershell -command "& \'{0}\'"', } diff --git a/index.js b/index.js index 268999b..8fbed65 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ let builtInShells = { pwsh: 'pwsh -command "& \'{0}\'"', python: 'python {0}', sh: 'sh -e {0}', - cmd: '%ComSpec% /D /E:ON /V:OFF /S /C "CALL "{0}""', + cmd: 'cmd.exe /D /E:ON /V:OFF /S /C "CALL "{0}""', powershell: 'powershell -command "& \'{0}\'"', }