Skip to content

Commit

Permalink
wip: testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Sep 3, 2024
1 parent aec5da8 commit 9d6e5f8
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9d6e5f8

Please sign in to comment.