ci: windows: fix bash-specific steps

This commit is contained in:
Simon Michael 2021-07-20 23:06:34 -10:00
parent 88c6d47e32
commit a54716778d

View File

@ -39,6 +39,9 @@ on:
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
# defaults:
# run:
# shell: bash
steps: steps:
- name: Check out - name: Check out
@ -57,6 +60,7 @@ jobs:
env: env:
BEFORE: ${{ github.event.before }} BEFORE: ${{ github.event.before }}
NUM: 20 NUM: 20
shell: bash
run: | run: |
RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
git rev-list --quiet $RANGE \ git rev-list --quiet $RANGE \
@ -64,6 +68,7 @@ jobs:
|| ( echo "could not identify commits, checking last $NUM instead:"; bin/commitlint -$NUM ) || ( echo "could not identify commits, checking last $NUM instead:"; bin/commitlint -$NUM )
- name: Skip remaining CI steps if latest commit message begins with ; - name: Skip remaining CI steps if latest commit message begins with ;
shell: bash
run: | run: |
git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} \ git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} \
| grep -qE '^ *;' || echo “::set-env name=CONTINUE::true” | grep -qE '^ *;' || echo “::set-env name=CONTINUE::true”