Skip to content

Commit d04793d

Browse files
committed
.
1 parent 7dc6c66 commit d04793d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build-cmd.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
elif [[ "${{ inputs.origin }}" == "issue" ]]; then
5252
BRANCH=$(printf "%s" "${{ inputs.args }}" | jq -r ".[0]")
5353
54-
if [[ "$BRANCH" == "" ]]; then
55-
echo "##[error]Missing argument branch at index 0 in command."
54+
if [[ -z "$BRANCH" ]]; then
55+
echo "::error::Missing argument branch at index 0 in command."
5656
exit 1
5757
fi
5858
@@ -76,7 +76,7 @@ jobs:
7676
set -euo pipefail
7777
7878
if [ -z "$COUNT" ] || [ "$COUNT" -lt 0 ] && [ "$COUNT" -ne -1 ]; then
79-
echo "##[error]Invalid count: $COUNT. May only be > 0."
79+
echo "::error::Invalid count: $COUNT. May only be > 0."
8080
exit 1
8181
fi
8282
@@ -111,10 +111,10 @@ jobs:
111111
FINAL_TAG=${PREFIX}${COUNT}
112112
113113
if echo "$TAGS" | grep -qx "$FINAL_TAG"; then
114-
echo "##[warn]Tag $FINAL_TAG already exists."
114+
echo "::warn::Tag $FINAL_TAG already exists."
115115
116116
if [ "${GITHUB_ACTOR}" != "${{ github.repository_owner }}" ]; then
117-
echo "##[error]User $GITHUB_ACTOR is not allowed to overwrite existing image."
117+
echo "::error::User $GITHUB_ACTOR is not allowed to overwrite existing image."
118118
exit 1
119119
else
120120
echo "User $GITHUB_ACTOR is the owner – allowed to proceed."

0 commit comments

Comments
 (0)