fix: remove function
Some checks failed
Blog Deployment / Check-Rebuild (push) Successful in 4s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 9s
Blog Deployment / Test-Staging (push) Failing after 3s
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 2s

This commit is contained in:
2025-06-11 09:17:23 +00:00
parent f8ff02b404
commit cf2d7d6ec9

View File

@@ -210,20 +210,16 @@ jobs:
steps: steps:
- name: Notify Workflow Result - name: Notify Workflow Result
run: | run: |
echo "starting" if [[
all_ok() { "${{ needs.Check-Rebuild.result }}" == "success" && \
for job in Check-Rebuild Build Deploy-Staging Test-Staging Merge Deploy-Production Test-Production Clean; do ("${{ needs.Build.result }}" == "success" || "${{ needs.Build.result }}" == "skipped") && \
echo "result=${{ needs.${job}.result }}"" "${{ needs.Deploy-Staging.result }}" == "success" && \
result="${{ needs.${job}.result }}" "${{ needs.Test-Staging.result }}" == "success" && \
if not [[ "$result" == "success" || "$result" == "skipped" ]]; then "${{ needs.Merge.result }}" == "success" && \
echo "job $job returned 1" "${{ needs.Deploy-Production.result }}" == "success" && \
return 1 "${{ needs.Test-Production.result }}" == "success" && \
fi ("${{ needs.Clean.result }}" == "success" || "${{ needs.Clean.result }}" == "skipped") \
echo "all ok" ]]; then
done
}
if all_ok; then
curl -H "Priority: min" \ curl -H "Priority: min" \
-H "Tags: white_check_mark" \ -H "Tags: white_check_mark" \
-H "Actions: view, View Run, ${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}" \ -H "Actions: view, View Run, ${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}" \