From a691bda415f0a46b746214941fc1f90020e2fa12 Mon Sep 17 00:00:00 2001 From: Matt Calhoun Date: Fri, 4 Aug 2023 16:03:52 -0400 Subject: [PATCH] add fix (#26) --- scripts/spacelift-generate-pr-comment-body.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/spacelift-generate-pr-comment-body.sh b/scripts/spacelift-generate-pr-comment-body.sh index fe0487a..1084b31 100755 --- a/scripts/spacelift-generate-pr-comment-body.sh +++ b/scripts/spacelift-generate-pr-comment-body.sh @@ -9,7 +9,7 @@ fi # Use jq to extract the spacelift_stack values and iterate through them stack_count=0 for spacelift_stack in $(jq -r '.[].spacelift_stack' < "affected-stacks.json" | grep -v null); do - printf "/spacelift %s %s\n" "$spacectl_command" "$spacelift_stack" >> "comment-body.txt" + printf "/spacelift %s %s\n" "$spacelift_stack" "$spacectl_command" >> "comment-body.txt" stack_count=$((stack_count+1)) done