File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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."
You can’t perform that action at this time.
0 commit comments