From d473ba5989dc1c6d2677388ba3b592fbaa5751f0 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Thu, 31 Oct 2024 11:00:23 +0000 Subject: [PATCH] Workflows: fix "test" workflow outputs --- .github/workflows/test.yml | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ea904c..c8e55f6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,19 @@ on: pull_request: + workflow_call: + outputs: + artifact_id: + value: ${{ jobs.build.outputs.artifact_id }} + keycloak_version: + value: ${{ jobs.build.outputs.keycloak_version }} + project_name: + value: ${{ jobs.build.outputs.project_name }} + project_version: + value: ${{ jobs.build.outputs.project_version }} name: Test + +permissions: {} jobs: build: @@ -10,14 +22,14 @@ steps: - id: checkout name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - id: java name: Install Java and Maven - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: zulu - java-version: 11 + java-version: 17 - id: vars name: Get project variables @@ -36,7 +48,7 @@ mvn -B test package - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: jar path: target/${{ steps.vars.outputs.artifactId }}-${{ steps.vars.outputs.projectVersion }}.jar @@ -55,11 +67,11 @@ steps: - id: checkout name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - id: download_artifact name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: jar -- Gitblit v1.9.1