Skip to content

Commit

Permalink
jq raw output
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Jul 11, 2024
1 parent 95ebba4 commit fac2b84
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -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 }}"

0 comments on commit fac2b84

Please sign in to comment.