This commit is contained in:
Kirill Chikalin
2025-03-20 10:21:06 +03:00
parent eccc9fcc11
commit 616ece8334

View File

@@ -58,14 +58,14 @@ runs:
- name: Send message - name: Send message
run: | run: |
STATUS = ${{ inputs.status }} STATUS = ${{ inputs.status }}
if [[ STATUS == "success" ]]; then if [[ "$STATUS" == "success" ]]; then
STATUS="✅" STATUS="✅"
elif [[ STATUS == "failure" ]]; then elif [[ "$STATUS" == "failure" ]]; then
STATUS="❌" STATUS="❌"
elif [[ STATUS == "cancelled" ]]; then elif [[ "$STATUS" == "cancelled" ]]; then
STATUS="⚠️" STATUS="⚠️"
fi fi
if [[ STATUS != '' ]]; then if [[ "$STATUS" != '' ]]; then
STATUS="$STATUS " STATUS="$STATUS "
fi fi
CAPTION="$STATUS${{ inputs.caption }}" CAPTION="$STATUS${{ inputs.caption }}"