summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/shells/defaults/push.yml
blob: 0b0204a156e0550484bf10ae8cd21d3509e70a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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