Skip to content

Commit

Permalink
fix(ci): Install java prior to getting project name
Browse files Browse the repository at this point in the history
  • Loading branch information
leviem1 committed Sep 18, 2023
1 parent 3261e06 commit fbb1aa2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Common Setup
uses: ./.github/actions/common-setup
with:
java-version: ${{ matrix.java }}

- name: Retrieve Project Name
run: echo "PROJECT_NAME=$(${{github.workspace}}/gradlew -q printProjectName)" >> $GITHUB_OUTPUT
id: project_name

- name: Get Project Name
run: echo "PROJECT_NAME=${{steps.project_name.outputs.PROJECT_NAME}}" >> $GITHUB_ENV

- name: Common Setup
uses: ./.github/actions/common-setup
with:
java-version: ${{ matrix.java }}

- name: Build with Gradle
run: ./gradlew assemble --info

Expand Down

0 comments on commit fbb1aa2

Please sign in to comment.