Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
CI: Apply tag-exists guard to upload-tag job
Mirror the SVN tag existence check added to the upload job so the
upload-tag job's `svn import` is also skipped (with a workflow warning)
when the tag is already present, avoiding E150002.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
  • Loading branch information
Demo and claude committed May 26, 2026
commit 564061211bdc32675e799e26653b87e18a749258
22 changes: 22 additions & 0 deletions .github/workflows/upload-release-to-plugin-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,29 @@ jobs:
name: changelog trunk
path: ${{ github.event.release.name }}

- name: Check if SVN tag already exists
id: check_svn_tag
run: |
svn_error_file="$(mktemp)"
if svn list "$PLUGIN_REPO_URL/tags/$VERSION" \
--username "$SVN_USERNAME" --password "$SVN_PASSWORD" \
--non-interactive --no-auth-cache >/dev/null 2>"$svn_error_file"; then
echo "::warning::SVN tag tags/$VERSION already exists. Skipping import to avoid E150002."
echo "exists=true" >> "$GITHUB_OUTPUT"
else
svn_status=$?
if grep -q 'E160013' "$svn_error_file"; then
echo "exists=false" >> "$GITHUB_OUTPUT"
else
cat "$svn_error_file" >&2
rm -f "$svn_error_file"
exit "$svn_status"
fi
fi
rm -f "$svn_error_file"

- name: Add the new version directory and commit changes to the SVN repository
if: steps.check_svn_tag.outputs.exists != 'true'
run: |
svn import "$VERSION" "$PLUGIN_REPO_URL/tags/$VERSION" -m "Committing version $VERSION" \
--no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD" \
Expand Down
Loading