Skip to content

Commit

Permalink
Run bash scripts on windows on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiM committed Oct 4, 2023
1 parent 277f966 commit 79f2a16
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ runs:
shell: bash

- name: "Bootstrap project"
if: ${{ runner.os != 'Windows' }}
env:
RUN_OS_WINBASH_IS_LINUX: 'true'
run: |
if [[ ! -z "${{ inputs.bootstrap-packages }}" ]]
then
Expand All @@ -61,12 +62,3 @@ runs:
fi
shell: bash

- name: "Bootstrap project on windows"
if: ${{ runner.os == 'Windows' }}
run: |
if ( "${{ inputs.bootstrap-packages }}" ) {
lerna bootstrap --scope '{${{ inputs.bootstrap-packages }},}'
} else {
lerna bootstrap
}
shell: powershell

0 comments on commit 79f2a16

Please sign in to comment.