Skip to content

Commit 0bb7536

Browse files
committed
Fix shell not being input correctly into init action
1 parent 5242c61 commit 0bb7536

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,16 @@ inputs:
2222
description: Should run the Playwright installation command
2323

2424
shell:
25-
required: true
25+
required: false
26+
default: bash
2627
description: What shell to use
2728

28-
defaults:
29-
runs:
30-
shell: ${{ inputs.shell }}
31-
3229
runs:
3330
using: composite
3431
steps:
3532
- name: Enable Corepack
3633
run: corepack enable
34+
shell: ${{ inputs.shell }}
3735

3836
- name: Use Node.js 💻
3937
uses: actions/setup-node@v4
@@ -44,11 +42,14 @@ runs:
4442
- name: Install Dependencies (Focused)
4543
if: inputs.package-name != '' && inputs.install-deps == 'true'
4644
run: yarn workspaces focus ${{ inputs.package-name }}
45+
shell: ${{ inputs.shell }}
4746

4847
- name: Install Dependencies (General)
4948
if: inputs.package-name == '' && inputs.install-deps == 'true'
5049
run: yarn install --immutable
50+
shell: ${{ inputs.shell }}
5151

5252
- name: Install Playwright
5353
if: inputs.playwright == 'true' && inputs.install-deps == 'true'
5454
run: yarn workspaces foreach -A --include ${{ inputs.package-name }} run playwright install --with-deps
55+
shell: ${{ inputs.shell }}

0 commit comments

Comments
 (0)