Skip to content

Commit 68accfc

Browse files
committed
ci(consistency): use sh for the go step in the alpine container
alpine has no bash; the conditional shell keeps bash everywhere else. Signed-off-by: Peefy <xpf6677@163.com>
1 parent b2cbd68 commit 68accfc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/consistency.yaml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ jobs:
204204
- name: go
205205
if: matrix.binding == 'go' && matrix.os != 'windows-latest'
206206
working-directory: lib/go
207-
shell: bash
207+
# The alpine musl container ships no bash.
208+
shell: ${{ matrix.musl && 'sh' || 'bash' }}
208209
run: |
209210
go mod tidy
210211
CGO_ENABLED=${{ matrix.musl && '1' || '0' }} \

0 commit comments

Comments
 (0)