From a54716778d72532dab44d8b453295cd9b1137f2c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 20 Jul 2021 23:06:34 -1000 Subject: [PATCH] ci: windows: fix bash-specific steps --- .github/workflows/windows.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2c13ce3db..0e95fd0e5 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -39,6 +39,9 @@ on: jobs: build: runs-on: windows-latest + # defaults: + # run: + # shell: bash steps: - name: Check out @@ -57,6 +60,7 @@ jobs: env: BEFORE: ${{ github.event.before }} NUM: 20 + shell: bash run: | RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} git rev-list --quiet $RANGE \ @@ -64,6 +68,7 @@ jobs: || ( echo "could not identify commits, checking last $NUM instead:"; bin/commitlint -$NUM ) - name: Skip remaining CI steps if latest commit message begins with ; + shell: bash run: | git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} \ | grep -qE '^ *;' || echo “::set-env name=CONTINUE::true”