From ab21593ff9fb586ed80d9cbf888cf234705ad555 Mon Sep 17 00:00:00 2001 From: Aaron Zielstorff Date: Fri, 6 Dec 2024 22:29:25 +0100 Subject: [PATCH] applies another fix to jar path --- .github/workflows/docker-snapshot-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-snapshot-release.yml b/.github/workflows/docker-snapshot-release.yml index 9871f97e6..28f44fd4f 100644 --- a/.github/workflows/docker-snapshot-release.yml +++ b/.github/workflows/docker-snapshot-release.yml @@ -99,11 +99,11 @@ jobs: run: | # Go three levels up from src/main/docker to get the module root module_root=$(dirname "$(dirname "$(dirname "${{ matrix.path }}")")") - - # Find the repackaged JAR in the new location - JAR_FILE=$(ls "$module_root/target/docker/aaronzi/build/maven/"*.jar | head -n 1) + + # Adjust the path to where the dockerbuild profile places the JAR + JAR_FILE=$(ls "$module_root/target/docker/aaronzi/${{ matrix.name }}/2.0.0-SNAPSHOT/build/maven/"*.jar | head -n 1) if [ -z "$JAR_FILE" ]; then - echo "No repackaged JAR found in $module_root/target/docker/aaronzi/build/maven/. Check your build." + echo "No repackaged JAR found in $module_root/target/docker/aaronzi/${{ matrix.name }}/2.0.0-SNAPSHOT/build/maven. Check your build." exit 1 fi