Skip to content

Commit 35c1390

Browse files
authored
Update pr-deploy.sh
Signed-off-by: Abasifreke Nkanang <[email protected]>
1 parent 57ead42 commit 35c1390

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pr-deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ if [ ! -f "$PID_FILE" ]; then
7777
echo {} > $PID_FILE
7878
fi
7979

80-
# Initialize the JSON file for comment if it doesn't exist
80+
# Initialize the JSON file for comment if comments are enabled and it doesn't exist
8181
if [ "$COMMENT" == true ] && [ ! -f "$COMMENT_ID_FILE" ]; then
8282
echo {} > $COMMENT_ID_FILE
8383
fi
8484

85-
# Handle COMMENT_ID
85+
# Handle COMMENT_ID if only comments are enabled
8686
if [ "$COMMENT" == true ]; then
8787
COMMENT_ID=$(jq -r --arg key $PR_ID '.[$key] // ""' ${COMMENT_ID_FILE})
8888
comment "Deploying ⏳"

0 commit comments

Comments
 (0)