We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57ead42 commit 35c1390Copy full SHA for 35c1390
pr-deploy.sh
@@ -77,12 +77,12 @@ if [ ! -f "$PID_FILE" ]; then
77
echo {} > $PID_FILE
78
fi
79
80
-# Initialize the JSON file for comment if it doesn't exist
+# Initialize the JSON file for comment if comments are enabled and it doesn't exist
81
if [ "$COMMENT" == true ] && [ ! -f "$COMMENT_ID_FILE" ]; then
82
echo {} > $COMMENT_ID_FILE
83
84
85
-# Handle COMMENT_ID
+# Handle COMMENT_ID if only comments are enabled
86
if [ "$COMMENT" == true ]; then
87
COMMENT_ID=$(jq -r --arg key $PR_ID '.[$key] // ""' ${COMMENT_ID_FILE})
88
comment "Deploying ⏳"
0 commit comments