Skip to content

Commit 0f854e4

Browse files
committed
downstream logic improved
1 parent 2501a62 commit 0f854e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/trigger-n8n-workflow.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ jobs:
553553

554554
# Step 14: Restore response payload from upstream output
555555
- name: Restore response payload
556+
id: restore_payload
556557
if: ${{ needs.gather-and-send.outputs.response_payload != '' }}
557558
run: |
558559
set -euo pipefail
@@ -562,9 +563,11 @@ jobs:
562563
exit 1
563564
fi
564565
printf '%s' "$payload" | base64 -d > response_body.json
566+
echo "restored=true" >> "$GITHUB_OUTPUT"
565567
566568
# Step 16: Prepare grouped review batches
567569
- name: Prepare batched review payloads
570+
if: ${{ steps.restore_payload.outputs.restored == 'true' }}
568571
run: |
569572
python3 - <<'PY'
570573
from pathlib import Path
@@ -659,6 +662,7 @@ jobs:
659662
660663
# Step 17: Post grouped inline suggestions
661664
- name: Post batched inline suggestions
665+
if: ${{ steps.restore_payload.outputs.restored == 'true' }}
662666
env:
663667
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
664668
run: |
@@ -733,6 +737,7 @@ jobs:
733737
734738
# Step 18: Publish any verification reviews
735739
- name: Post verification comments
740+
if: ${{ steps.restore_payload.outputs.restored == 'true' }}
736741
env:
737742
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
738743
run: |

0 commit comments

Comments
 (0)