From 9d6e5f81fd14c4f31f96901ab8dd7ba792f1bd44 Mon Sep 17 00:00:00 2001 From: Joshua Gilman Date: Tue, 3 Sep 2024 19:14:54 -0400 Subject: [PATCH] wip: testing --- .github/workflows/publish.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 98f90db1..e60f587c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,18 +34,12 @@ jobs: - name: Get image id: image run: | - INPUT="${{ matrix.earthfile }}" - EARTHFILE="${INPUT%+*}" - TARGET="${INPUT#*+}" - - echo "EARTHFILE: $EARTHFILE" - echo "TARGET: $TARGET" - - $RESULT="${{ steps.run.outputs.result }}" - $IMAGE=$(echo "$RESULT" | jq -r ".images[\"$TARGET\"]") + EARTHFILE="${{ matrix.earthfile }}" + RESULT="${{ steps.run.outputs.result }}" + IMAGE="$(echo "$RESULT" | jq -r ".images[\"$INPUT\"]")" if [[ "$IMAGE" == "null" ]]; then - echo "::error file=${EARTHFILE}/Earthfile::No images produced. Cannot publish." + echo "::error file=${EARTHFILE%+*}/Earthfile::No images produced. Cannot publish." exit 1 fi