mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
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:
parent
9f5df5e527
commit
f09a90bf80
8 changed files with 76 additions and 3 deletions
17
act/runner/testdata/shells/bash/push.yml
vendored
17
act/runner/testdata/shells/bash/push.yml
vendored
|
@ -5,6 +5,19 @@ jobs:
|
|||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
if [[ -n "$PATH" ]] ; then
|
||||
echo "I'm Bash!"
|
||||
if [[ -n "$BASH" ]]; then
|
||||
echo "I'm $BASH!"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
check-container:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:12-buster-slim
|
||||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
if [[ -n "$BASH" ]]; then
|
||||
echo "I'm $BASH!"
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue