Skip to content

Tag and Note Release workflow improvements#4

Merged
bryce-b merged 3 commits intoopen-telemetry:mainfrom
embrace-io:aridemarco/tag-and-release-improvements
Sep 4, 2025
Merged

Tag and Note Release workflow improvements#4
bryce-b merged 3 commits intoopen-telemetry:mainfrom
embrace-io:aridemarco/tag-and-release-improvements

Conversation

@ArielDemarco
Copy link
Member

Overview

This PR improves the Tag & Note Release workflow to make it more robust and readable.

Changes

  • Add a per-PR concurrency group to avoid overlapping runs for the same PR number and to cancel stale executions
  • Ensure the workflow only runs when a PR is merged into main and the head branch follows release/x.y.z when the workflow begins. Previously, this was a step inside the job that would mark the whole job as a fail. Now they simply won’t run.
  • Extract version number directly from the branch name (kept as before, but now centralized/explicit in one step).
  • Check if a tag already exists before creating a new one, and skip CocoaPods publishing if the version is already on trunk. This makes the workflow idempotent: if a run fails (e.g. during pod trunk push), re running won't re tag or re release, but will retry CocoaPods publishing.
  • Simplify job structure by splitting into two clear responsibilities: tag handles tagging (necessary for SPM) and release creation, while cocoapods only pushes pods. This makes the workflow more readable and maintainable.

@ArielDemarco ArielDemarco changed the title Aridemarco/tag and release improvements Tag and Release workflow improvements Sep 2, 2025
@ArielDemarco ArielDemarco changed the title Tag and Release workflow improvements Tag and Note Release workflow improvements Sep 2, 2025
@bryce-b bryce-b merged commit c84cdc1 into open-telemetry:main Sep 4, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants