chore: optimize workflow to avoid unnecessary runs - #15
Merged
Conversation
- Add workflow-level concurrency group (cancel-in-progress: false) so simultaneous pushes cannot race and leave a release PR half-tagged. - Add recover-stale-releases job that runs before release-please on every push: creates any git tags where manifest version == package.json version but the tag is absent, then relabels merged release PRs from 'autorelease: pending' to 'autorelease: tagged'. This auto-heals the 'untagged merged release PRs outstanding - aborting' state without any manual intervention on future occurrences.
olamide226
enabled auto-merge (squash)
February 25, 2026 16:15
Contributor
There was a problem hiding this comment.
Pull request overview
This PR optimizes GitHub Actions workflows to reduce unnecessary workflow runs and adds resilience to the release process through automated recovery of stale releases.
Changes:
- Modified CI workflows (sdk, gateway, docs) to skip path-based change detection on push events, running CI unconditionally instead
- Added concurrency control to release workflow to prevent race conditions between simultaneous release runs
- Introduced automated recovery mechanism to create missing git tags and relabel stale release PRs, preventing release-please failures
- Added comprehensive pull request template following conventional commit conventions
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/sdk.yml | Optimized to skip change detection on push events; status checks now PR-only |
| .github/workflows/gateway.yml | Same optimization pattern as sdk.yml for gateway CI |
| .github/workflows/docs.yml | Optimized change detection with workflow_dispatch support; status checks now PR-only |
| .github/workflows/release-sdk.yml | Added concurrency control and stale release recovery job to prevent tagging failures |
| .github/pull_request_template.md | New PR template with conventional commit format and structured checklist |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.