From 50ab7c792ac77d973e2aac161063bad35f0f4366 Mon Sep 17 00:00:00 2001 From: Marius Boden Date: Wed, 25 Oct 2023 10:09:59 +0000 Subject: [PATCH] fix(PR): fix preview step for multiple stacks --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index dd1ceb7..bd2455a 100644 --- a/action.yml +++ b/action.yml @@ -170,7 +170,8 @@ runs: github.event_name == 'pull_request' }} run: | - if [[ -z ${{ steps.list.outputs.stdout }} ]]; then + STACKS='${{ steps.list.outputs.stdout }}' + if [[ -z "$STACKS" ]]; then echo >>${{ inputs.preview-comment-file }} '### No changed stacks.' cat ${{ inputs.preview-comment-file }} >>$GITHUB_STEP_SUMMARY else