Implements automated draft release creation when version tags are
pushed.
The workflow:
- Triggers on tags matching the pattern [0-9]+.[0-9]+.[0-9]+
(e.g., 1.0.0, 1.1.0)
- Finds all PRs merged since the previous tag using GitHub API
- Categorizes PRs into "fixes" (starting with Fix/Bugfix/Hotfix) and
"other"
- Creates a draft release with formatted PR list including full URLs
- Leaves the release as draft for manual binary attachment before
publishing
This workflow runs automated checks on pull requests to ensure code
quality:
- Builds the OMG project using xcodebuild with the OMG scheme
- Validates code formatting using swiftformat with the project's
.swiftformat configuration
- Caches Swift Package Manager dependencies to optimize build times
- Runs on all pull requests targeting main and develop branches
The workflow helps maintain code quality and consistency by catching
build failures and formatting issues before code is merged.