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 233b3a2 commit 5cfd316
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ jobs:
id: image
run: |
EARTHFILE='${{ matrix.earthfile }}'
PATH="${EARTHFILE%+*}"
FILE="${EARTHFILE%+*}"
TARGET="${EARTHFILE#*+}"
RESULT='${{ steps.run.outputs.result }}'
# If the path is just ".", then we omit it
if [[ "$PATH" == "." ]]; then
if [[ "$FILE" == "." ]]; then
EARTHFILE="$TARGET"
fi
IMAGE="$(echo "$RESULT" | jq -r ".images[\"$EARTHFILE\"]")"
if [[ "$IMAGE" == "null" ]]; then
echo "::error file=${EARTHFILE%+*}/Earthfile::No images produced. Cannot publish."
echo "::error file=${FILE}/Earthfile::No images produced. Cannot publish."
exit 1
fi
Expand Down

0 comments on commit 5cfd316

Please sign in to comment.