diff --git a/action.yml b/action.yml index 7e93c3f..c3115d3 100644 --- a/action.yml +++ b/action.yml @@ -20,10 +20,10 @@ outputs: value: ${{ steps.script.outputs.NETLIFY_OUTPUT }} NETLIFY_LOGS_URL: description: "URL to Netlify deployment logs" - value: ${{ fromJson(steps.script.outputs.NETLIFY_OUTPUT).logs }} + value: ${{ steps.script.outputs.NETLIFY_OUTPUT && fromJson(steps.script.outputs.NETLIFY_OUTPUT).logs || '' }} NETLIFY_DRAFT_URL: description: "URL to draft site" - value: ${{ fromJson(steps.script.outputs.NETLIFY_OUTPUT).deploy_url }} + value: ${{ steps.script.outputs.NETLIFY_OUTPUT && fromJson(steps.script.outputs.NETLIFY_OUTPUT).deploy_url || '' }} NETLIFY_PROD_URL: description: "URL to production site" - value: ${{ fromJson(steps.script.outputs.NETLIFY_OUTPUT).url }} + value: ${{ steps.script.outputs.NETLIFY_OUTPUT && fromJson(steps.script.outputs.NETLIFY_OUTPUT).url || '' }}