fix: don't run notify job when locked
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 6s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 9s
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) Has been skipped

This commit is contained in:
2025-06-23 13:35:40 +00:00
parent 48fcc8f7b3
commit 9a34b0ea70

View File

@@ -209,7 +209,7 @@ jobs:
Notify:
needs: [Check-Rebuild, Build, Deploy-Staging, Test-Staging, Merge, Deploy-Production, Test-Production, Clean]
runs-on: ubuntu
if: always()
if: always() && needs.Check-Rebuild.outputs.dev_lock_present == 'false'
env:
NTFY_URL: https://ntfy.vezpi.me
NTFY_TOPIC: blog
@@ -217,7 +217,6 @@ 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") &&
@@ -242,8 +241,5 @@ jobs:
-u ${NTFY_TOKEN} \
${NTFY_URL}/${NTFY_TOPIC}
fi
else
echo "🔒 Merge is locked via .dev-lock file, no notification"
fi