Skip to content

Commit 807f957

Browse files
committed
Fix handling metadata with single quotes
1 parent 99d5e1a commit 807f957

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,10 @@ runs:
236236
- name: Get Metadata
237237
id: get-metadata
238238
shell: bash
239+
env:
240+
METADATA: ${{ toJSON(steps.docker-build-push-action.outputs.metadata) }}
239241
run: |
240-
metadata=$(echo '${{ steps.docker-build-push-action.outputs.metadata }}' | jq -c)
242+
metadata=$(echo "$METADATA" | jq -c)
241243
echo "metadata=$metadata" >> $GITHUB_OUTPUT
242244
echo "## Docker Image Metadata" >> $GITHUB_STEP_SUMMARY
243245
echo '```json' >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)