on: push
jobs:
  check: # use `bash` as default for runners
    runs-on: ubuntu-latest
    steps:
      - run: |
          if [[ -n "$BASH" ]]; then
            echo "I'm $BASH!"
          else
            exit 1
          fi
  fallback: # uses `sh` as fallback default if `bash` is not available
    runs-on: ubuntu-latest
    container:
      image: code.forgejo.org/oci/alpine:latest
    steps:
      - run: |
          if [ -z "${BASH}" ]; then
            echo "I'm sh!"
          else
            exit 1
          fi
