Skip to content

Commit c957cda

Browse files
paulopmt1Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 48b48a7 commit c957cda

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎.github/workflows/upload-release-to-plugin-repo.yml‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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'

0 commit comments

Comments
 (0)