fix: set sh
as default shell for containers (#853)
* fix: set default shell for containers to sh This matches GitHub Actions behaviour where, runners use bash since it's guaranteed to exist there while containers use sh for compatibility * tests: fixup for default shell
This commit is contained in:
21
pkg/runner/testdata/shells/defaults/push.yml
vendored
Normal file
21
pkg/runner/testdata/shells/defaults/push.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
on: push
|
||||
jobs:
|
||||
check: # GHA uses `bash` as default for runners
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
if [[ -n "$BASH" ]]; then
|
||||
echo "I'm $BASH!"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
check-container: # GHA uses `sh` as default for containers
|
||||
runs-on: ubuntu-latest
|
||||
container: alpine:latest
|
||||
steps:
|
||||
- run: |
|
||||
if [ -z ${BASH+x} ]; then
|
||||
echo "I'm sh!"
|
||||
else
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user