Skip to content

Commit

Permalink
Ensure checkout happens before trying to run the local action
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
Tristan971 committed Jan 11, 2025
1 parent 46a10f9 commit a6e5979
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/actions/maven-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ inputs:
runs:
using: composite
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"
- name: "Cache local Maven repository"
uses: "actions/cache@v4"
with:
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
runs-on: "ubuntu-latest"
outputs:
build_version: "${{ steps.set_variables.outputs.build_version }}"
java_version: "${{ steps.set_variables.outputs.java_version }}"
docker_image: "${{ steps.set_variables.outputs.docker_image }}"
java_version: "${{ steps.set_variables.outputs.java_version }}"
docker_image: "${{ steps.set_variables.outputs.docker_image }}"
steps:
- id: "set_variables"
run: |
Expand All @@ -34,10 +34,14 @@ jobs:
name: "HotSpot"
runs-on: "ubuntu-latest"
needs: [ "set_variables" ]
container:
image: "ghcr.io/mangadex-pub/jdk-maven:${{ needs.set_variables.outputs.java_version }}-corretto"
options: "--user root"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"
- name: "Install JDK"
uses: "actions/setup-java@4"
with:
distribution: "corretto"
java-version: "${{ needs.set_variables.outputs.java_version }}"
- name: "Maven Build (JIT)"
uses: "./.github/actions/maven-build"
with:
Expand All @@ -57,6 +61,8 @@ jobs:
image: "ghcr.io/mangadex-pub/jdk-maven:${{ needs.set_variables.outputs.java_version }}-graal"
options: "--user root"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"
- name: "Maven Build (AOT)"
uses: "./.github/actions/maven-build"
with:
Expand Down

0 comments on commit a6e5979

Please sign in to comment.