Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
This is to make preview url, editor url and themeid to be  available as github actions outputs so that next steps can access the value and push to Jira Task or other reports.
  • Loading branch information
alexantom committed Dec 10, 2021
1 parent b00173c commit a4a7467
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ step "Creating development theme"
theme_push_log="$(mktemp)"
shopify theme push --development --json $theme_root > "$theme_push_log" && cat "$theme_push_log"
preview_url="$(cat "$theme_push_log" | tail -n 1 | jq -r '.theme.preview_url')"
editor_url="$(cat "$theme_push_log" | tail -n 1 | jq -r '.theme.editor_url')"
theme_id="$(cat "$theme_push_log" | tail -n 1 | jq -r '.theme.id')"

echo "::set-output name=preview_url::$preview_url"
echo "::set-output name=editor_url::$editor_url"
echo "::set-output name=theme_id::$theme_id"

step "Configuring Lighthouse CI"

Expand Down

0 comments on commit a4a7467

Please sign in to comment.