Skip to content

Commit cc44e75

Browse files
committed
Fix the command not running properly
1 parent 9a3df60 commit cc44e75

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/actions/src/init/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ runs:
3030
using: composite
3131
steps:
3232
- name: Enable Corepack
33-
run: corepack enable ~/corepack
33+
if: ${{ inputs.shell != 'pwsh' }}
34+
run: corepack enable
35+
shell: bash
36+
37+
- name: Enable Corepack (Powershell)
38+
if: ${{ inputs.shell == 'pwsh' }}
39+
run: corepack enable --install-directory ~/corepack
3440
shell: ${{ inputs.shell }}
3541

3642
- name: Setup Aliases (Windows)

0 commit comments

Comments
 (0)