From 7e28ffba31229c8640ca9405230618acc4db5099 Mon Sep 17 00:00:00 2001 From: Touseef Liaqat Date: Tue, 14 May 2024 17:18:35 -0700 Subject: [PATCH] Use intermediate variable for github env values --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 37957c5..58fab5e 100644 --- a/action.yml +++ b/action.yml @@ -20,8 +20,9 @@ runs: - name: Get Deployment Bot Comments id: deployment-id shell: bash + env: + COMMENTS: ${{ github.event.comment.body }} run: | - COMMENTS='${{ github.event.comment.body }}' LOGID=$(echo $COMMENTS | grep -Eo "(http|https)://[a-zA-Z0-9./]*(${{inputs.cf_project}})+" | sort -u | awk -F/ '{print $3}' | awk -F. '{print $1}') echo "LOGID: $LOGID" if [ -z "$LOGID" ]; then