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 ! {