Skip to content

Commit d0410ca

Browse files
Copilotphlax
andauthored
Clean up: remove redundant assignment and simplify warning echo
Co-authored-by: phlax <454682+phlax@users.noreply.github.com>
1 parent 5396a12 commit d0410ca

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

actions/github/release/status/action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,13 @@ runs:
176176
if gh workflow run "$wf" --ref main --repo "$REPOSITORY"; then
177177
echo "::notice::Dispatched workflow '$wf' — publish will retry when it completes"
178178
else
179-
echo "::warning::Could not dispatch workflow '$wf'" \
180-
"(token may lack workflow:write, or no workflow_dispatch trigger)" \
181-
"— manual retry required"
179+
MSG_WARN="Could not dispatch workflow '$wf'"
180+
MSG_WARN+=" (token may lack workflow:write, or no workflow_dispatch trigger)"
181+
MSG_WARN+=" — manual retry required"
182+
echo "::warning::${MSG_WARN}"
182183
fi
183184
done
184185
185-
DETAIL="${PROBLEMS[*]}"
186-
# Join with ', ' using parameter expansion
187186
DETAIL=$(printf '%s, ' "${PROBLEMS[@]}")
188187
DETAIL="${DETAIL%, }"
189188
MSG="Cannot publish non-dev release ${RELEASE_NAME}-v${VERSION}"

0 commit comments

Comments
 (0)