name: CI
on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: 'Check out repository'
        uses: actions/checkout@v2
      - name: 'Set up JDK'
        uses: actions/setup-java@v1
        with:
          java-version: 15
      - name: 'Set up constants'
        run: |
          SHA7=$(echo "${{ github.sha }}" | cut -c1-7)
          echo "VERSION=15-ea+${SHA7}" >> ${GITHUB_ENV}
      - name: 'Bootstrap Bach'
        run: java --show-version -Dbach.project.version=${VERSION} .bach/bootstrap/Bootstrap.java
      - name: 'Upload build artifacts'
        uses: actions/upload-artifact@v2
        with:
          name: ${{ github.event.repository.name }}-build-${{ env.VERSION }}
          path: |
            .bach/workspace/modules

name: CI
on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: 'Check out repository'
        uses: actions/checkout@v2
      - name: 'Set up JDK'
        uses: actions/setup-java@v1
        with:
          java-version: 15
      - name: 'Set up constants'
        run: |
          SHA7=$(echo "${{ github.sha }}" | cut -c1-7)
          echo "VERSION=15-ea+${SHA7}" >> ${GITHUB_ENV}
      - name: 'Bootstrap Bach'
        run: |
          java --show-version \
            -Dbach.project.version=${VERSION} \
            .bach/bootstrap/Bootstrap.java
      - name: 'Upload build artifacts'
        uses: actions/upload-artifact@v2
        with:
          name: ${{ github.event.repository.name }}-build-${{ env.VERSION }}
          path: |
            .bach/workspace/modules

Break shell command into several lines
Break shell command into several lines
