From a4a74672f136c2166825a11319decd9f9f6c50bd Mon Sep 17 00:00:00 2001 From: Thomas Alexander Date: Fri, 10 Dec 2021 10:40:29 -0800 Subject: [PATCH] Update entrypoint.sh 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. --- entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index f300570..e116676 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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"