From e789ef260a08a9f39cb2098162862570c94719b0 Mon Sep 17 00:00:00 2001 From: Virus5600 Date: Mon, 30 Dec 2024 10:27:25 +0800 Subject: [PATCH] Refactor 20241230 - Composite Refactor Refactored the composite action for the workflow. --- .github/{workflows/prep.yml => actions/prep/action.yml} | 1 + .github/workflows/build.yml | 2 +- .github/workflows/fabric.yml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) rename .github/{workflows/prep.yml => actions/prep/action.yml} (99%) diff --git a/.github/workflows/prep.yml b/.github/actions/prep/action.yml similarity index 99% rename from .github/workflows/prep.yml rename to .github/actions/prep/action.yml index 5bff746..1e78481 100644 --- a/.github/workflows/prep.yml +++ b/.github/actions/prep/action.yml @@ -1,5 +1,6 @@ name: "Pre Testing" description: "Prepare the environment for testing" + inputs: java: required: true diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d1b98de..e867fc3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4 - name: Prepare Testing - uses: ./.github/workflows/prep.yml + uses: ./.github/actions/prep with: java: ${{ matrix.java }} os: ${{ matrix.os }} diff --git a/.github/workflows/fabric.yml b/.github/workflows/fabric.yml index 146fe13..4103e01 100644 --- a/.github/workflows/fabric.yml +++ b/.github/workflows/fabric.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v4 - name: Prepare Testing - uses: ./.github/workflows/prep.yml + uses: ./.github/actions/prep with: java: ${{ matrix.version.java }} os: ubuntu-latest