File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,14 +230,23 @@ jobs:
230230 - name : Check if SVN tag already exists
231231 id : check_svn_tag
232232 run : |
233+ svn_error_file="$(mktemp)"
233234 if svn list "$PLUGIN_REPO_URL/tags/$VERSION" \
234235 --username "$SVN_USERNAME" --password "$SVN_PASSWORD" \
235- --non-interactive --no-auth-cache 2 >/dev/null | grep -q . ; then
236+ --non-interactive --no-auth-cache >/dev/null 2>"$svn_error_file" ; then
236237 echo "::warning::SVN tag tags/$VERSION already exists. Skipping release commit to avoid E150002."
237238 echo "exists=true" >> "$GITHUB_OUTPUT"
238239 else
239- echo "exists=false" >> "$GITHUB_OUTPUT"
240+ svn_status=$?
241+ if grep -q 'E160013' "$svn_error_file"; then
242+ echo "exists=false" >> "$GITHUB_OUTPUT"
243+ else
244+ cat "$svn_error_file" >&2
245+ rm -f "$svn_error_file"
246+ exit "$svn_status"
247+ fi
240248 fi
249+ rm -f "$svn_error_file"
241250
242251 - name : Commit the release
243252 if : steps.check_svn_tag.outputs.exists != 'true'
You can’t perform that action at this time.
0 commit comments