Skip to content

Commit

Permalink
conditional parsing of outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
South-Paw committed Sep 13, 2023
1 parent 2f244b2 commit a22f108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '' }}

0 comments on commit a22f108

Please sign in to comment.