We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b74bd76 commit 5ba5417Copy full SHA for 5ba5417
1 file changed
actions/docker/build-image/action.yml
@@ -123,13 +123,7 @@ runs:
123
uses: actions/github-script@v6.4.1
124
with:
125
script: |
126
- const builtMetadataOutput = `${{ steps.build.outputs.metadata }}`;
127
- let builtMetadata;
128
- try {
129
- builtMetadata = JSON.parse(builtMetadataOutput);
130
- } catch (error) {
131
- throw new Error(`Given "metadata" output is not a valid JSON: ${error}`);
132
- }
+ const builtMetadata = ${{ steps.build.outputs.metadata }};
133
134
if (typeof builtMetadata !== 'object') {
135
core.setFailed('Given "metadata" output is not a JSON object.');
0 commit comments