ci: fix windows, make bash requirement explicit
This commit is contained in:
parent
07faf2ad2f
commit
6f96d21a3e
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -110,6 +110,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 \
|
||||||
@ -117,6 +118,7 @@ jobs:
|
|||||||
|| ( echo "could not identify commit range, checking last $NUM instead:"; bin/commitlint -$NUM )
|
|| ( echo "could not identify commit range, 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: |
|
||||||
echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog"
|
echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog"
|
||||||
(git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog \
|
(git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog \
|
||||||
|
|||||||
2
.github/workflows/mac.yml
vendored
2
.github/workflows/mac.yml
vendored
@ -67,6 +67,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 \
|
||||||
@ -74,6 +75,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: |
|
||||||
echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog"
|
echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog"
|
||||||
(git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog \
|
(git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog \
|
||||||
|
|||||||
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@ -78,6 +78,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 \
|
||||||
@ -85,6 +86,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: |
|
||||||
echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog"
|
echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog"
|
||||||
(git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog \
|
(git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog \
|
||||||
|
|||||||
1
.github/workflows/windows.yml
vendored
1
.github/workflows/windows.yml
vendored
@ -68,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: |
|
||||||
echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog"
|
echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog"
|
||||||
(git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog \
|
(git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user