Skip to content

Commit 805e001

Browse files
committed
Fix shell for steps that run before MSYS2 setup
The git checkout and failure-handling steps need explicit shell: bash since they may run before MSYS2 is set up or if MSYS2 setup fails.
1 parent 1b9528c commit 805e001

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/verify-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ jobs:
333333
# If this run was triggered by a pull request event, then checkout
334334
# the head of the pull request instead of the merge commit.
335335
- run: git checkout HEAD^2
336+
shell: bash
336337
if: ${{ github.event_name == 'pull_request' }}
337338

338339
- name: Setup MSYS2
@@ -532,6 +533,7 @@ jobs:
532533
fi
533534
534535
- name: Print config.log
536+
shell: bash
535537
run: |
536538
cd build ;
537539
cat config.log ;
@@ -569,6 +571,7 @@ jobs:
569571
if: ${{ matrix.build-type != 'iwyu' }}
570572

571573
- name: Print tests results
574+
shell: bash
572575
run: |
573576
cd build ;
574577
cat test/test-suite.log ;

0 commit comments

Comments
 (0)