From f5508295f5d629b9f5ecf4361fa1f6bc75c3d97d Mon Sep 17 00:00:00 2001 From: avallete Date: Fri, 23 Oct 2026 11:44:01 +0200 Subject: [PATCH] ci(repo): find the sync comment when a single artifact is downloaded download-artifact extracts a lone matching artifact into the path itself, so the publish step never found comment.md and posted nothing when the resolver declined a merge. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/sync-branches.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/sync-branches.yml b/.github/workflows/sync-branches.yml index 5058c163f2..e6ec562332 100644 --- a/.github/workflows/sync-branches.yml +++ b/.github/workflows/sync-branches.yml @@ -355,6 +355,10 @@ jobs: break fi done + # download-artifact extracts a lone matching artifact into the path itself, not a subdirectory. + if [ -z "$stage" ] && [ -f "$ARTIFACTS/comment.md" ]; then + stage="$ARTIFACTS" + fi if [ "$RESOLVED" = true ]; then export REPO_DIR="$GITHUB_WORKSPACE" OUTPUT_DIR="$stage" HEAD_SHA if ! {