mirror of https://code.forgejo.org/forgejo/act
38 lines
732 B
YAML
38 lines
732 B
YAML
on: push
|
|
env:
|
|
MY_SHELL: sh
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- shell: ${{ env.MY_SHELL }}
|
|
run: |
|
|
if [ -z ${BASH+x} ]; then
|
|
echo "I'm sh!"
|
|
else
|
|
exit 1
|
|
fi
|
|
check-container:
|
|
runs-on: ubuntu-latest
|
|
container: alpine:latest
|
|
steps:
|
|
- shell: ${{ env.MY_SHELL }}
|
|
run: |
|
|
if [ -z ${BASH+x} ]; then
|
|
echo "I'm sh!"
|
|
else
|
|
exit 1
|
|
fi
|
|
check-job-default:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
shell: ${{ env.MY_SHELL }}
|
|
steps:
|
|
- run: |
|
|
if [ -z ${BASH+x} ]; then
|
|
echo "I'm sh!"
|
|
else
|
|
exit 1
|
|
fi
|