Use a specific Java version with GitHub Actions

Published:
Talks about: , , and

The setup-java action allows to use a specific Java version in your GitHub Action.

name: <PIPELINE>
jobs:
  build:
    runs-on: <RUN_ON>
    steps:
      - name: Set up JDK <JDK_VERSION>
        uses: actions/setup-java@v1
        with:
          java-version: <JDK_VERSION>