fix: disable notification when locked
Some checks failed
Blog Deployment / Check-Rebuild (push) Successful in 5s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 8s
Blog Deployment / Test-Staging (push) Successful in 2s
Blog Deployment / Merge (push) Has been skipped
Blog Deployment / Deploy-Production (push) Has been skipped
Blog Deployment / Test-Production (push) Has been skipped
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Failing after 3s

This commit is contained in:
2025-06-23 13:32:36 +00:00
parent 90ce31b2ec
commit 4d8ad5779b

View File

@@ -217,6 +217,7 @@ jobs:
steps:
- name: Notify Workflow Result
run: |
if [[ ${{ needs.Check-Rebuild.outputs.dev_lock_present}}" == 'false' ]]; then
if [[
"${{ needs.Check-Rebuild.result }}" == "success" &&
("${{ needs.Build.result }}" == "success" || "${{ needs.Build.result }}" == "skipped") &&
@@ -240,6 +241,9 @@ jobs:
-d "Blog workflow failed!" \
-u ${NTFY_TOKEN} \
${NTFY_URL}/${NTFY_TOPIC}
else
echo "🔒 Merge is locked via .dev-lock file, no notification"
fi
fi