actions / setup-java

Set up your GitHub Actions workflow with a specific version of Java
MIT License
1.54k stars 739 forks source link

how do i use the "install-multiple-jdks" in the Github action #586

Open angold5 opened 9 months ago

angold5 commented 9 months ago

Description: How do i use the new version of java in the github action https://github.com/actions/setup-java#install-multiple-jdks

    steps:

        uses: actions/setup-java@v4
        with:
          distribution: '<distribution>'
          java-version: 17
      - run: java HelloWorldApp.java
      - name: Sonar scan
        env:
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
        run: ./gradlew build sonar --info
working-directory: ./my-app/HelloWorldFunction

Justification: i dont know how to use it

Are you willing to submit a PR?

aparnajyothi-y commented 9 months ago

Hello @angold5 Thank you for reporting this issue, We will investigate it and come back to you as soon as we have some information.