From fac2b8414adb03653286e125a7ed14d774fb386c Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Thu, 11 Jul 2024 15:20:19 -0700 Subject: [PATCH] jq raw output --- action.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 762f766..53efcca 100644 --- a/action.yml +++ b/action.yml @@ -138,7 +138,7 @@ runs: id: digest_old shell: bash run: | - DIGEST=$((docker manifest inspect ${{ steps.vars.outputs.tags }} || echo )| jq '.manifests[0].digest') + DIGEST=$((docker manifest inspect ${{ steps.vars.outputs.tags }} || echo )| jq -r '.manifests[0].digest') echo "digest=${DIGEST}" >> $GITHUB_OUTPUT # If a build is required, then checkout, login, build and push! @@ -180,14 +180,14 @@ runs: id: digest_new shell: bash run: | - DIGEST=$(docker manifest inspect ${{ steps.vars.outputs.tags }} | jq '.manifests[0].digest') + DIGEST=$(docker manifest inspect ${{ steps.vars.outputs.tags }} | jq -r '.manifests[0].digest') echo "digest=${DIGEST}" >> $GITHUB_OUTPUT # Summary - name: Summary shell: bash run: | - echo 'inputs: ${{ fromJSON(inputs) }}' - echo 'digest_new: ${{ steps.digest_new.outputs.digest }}' - echo 'digest_old: ${{ steps.digest_old.outputs.digest }}' - echo 'triggered: ${{ steps.diff.outputs.triggered }}' + echo "inputs: ${{ fromJSON(inputs) }}" + echo "digest_new: ${{ steps.digest_new.outputs.digest }}" + echo "digest_old: ${{ steps.digest_old.outputs.digest }}" + echo "triggered: ${{ steps.diff.outputs.triggered }}"