ci: run checks and publish on release branches - #1059
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
Pull request overview
This PR updates the repository’s CI and CD GitHub Actions workflows so they trigger not only on main, but also on release/** branches. This aligns workflow execution with the project’s hotfix/release process so required status checks and publishing can run on release branches.
Changes:
- Extend
.github/workflows/ci.ymltriggers to run onpushandpull_requestevents targetingrelease/**in addition tomain. - Extend
.github/workflows/cd.ymlpushtrigger to run onrelease/**(still scoped to changes inpyproject.toml) in addition tomain.
File summaries
| File | Description |
|---|---|
| .github/workflows/ci.yml | Adds release/** to push and pull_request branch filters so CI reusable workflows run for release-branch PRs and pushes. |
| .github/workflows/cd.yml | Adds release/** to the push branch filter so publishing can occur from release branches when pyproject.toml changes. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ionut-mihalache-uipath
approved these changes
Sep 1, 2026
Hotfix releases are cut on release/* branches, but both workflows are scoped to main: - ci.yml only fires for PRs targeting main, so a PR into a release branch gets no checks. MainProtect covers refs/heads/release/* and requires lint, commit-lint, SonarCloud and the six test matrix contexts, so they sit at Expected forever and the PR cannot merge without a bypass. - cd.yml only fires on push to main, so merging a hotfix publishes nothing and every release needs a manual workflow_dispatch.
radu-mocanu
enabled auto-merge (squash)
September 1, 2026 15:04
radu-mocanu
force-pushed
the
ci/run-and-publish-on-release-branches
branch
from
September 1, 2026 15:05
3d30c3d to
5039604
Compare
|
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.



Scopes both workflows to
release/**in addition tomain.# ci.yml push: branches: - main + - 'release/**' paths-ignore: - pyproject.toml pull_request: branches: - main + - 'release/**' # cd.yml push: branches: - main + - 'release/**' paths: - pyproject.tomlWhy
Hotfix releases are cut on
release/*branches, but both workflows are scoped tomainonly.Checks never run.
ci.ymlfires only for PRs targetingmain, and it is the only workflow that callslint.yml,test.ymlandcommitlint.yml. TheMainProtectruleset coversrefs/heads/release/*and requireslint / Lint,commit-lint / Commit Lint,SonarCloud Code Analysisand the sixtest / Test (3.x, uipath-{ubuntu,windows}-latest)contexts. For a PR into a release branch nothing produces them, so every one sits atExpected — Waiting for status to be reportedand the PR is unmergeable without an admin bypass. That happened on #1058, which had to be force-merged despite a clean local run.Publishing never happens.
cd.ymlfires only on push tomain, so merging a hotfix into its release branch publishes nothing and every release needs a manualworkflow_dispatch. A dispatch also runs the workflow file from the dispatched ref, so a branch cut from an older commit runs an older CI definition thanmain's.Is auto-publishing from a release branch safe
The
pypienvironment has no deployment branch policy or protection rules, so a release ref is already permitted to publish, andrelease/*is covered byMainProtect, which requires a pull request — nothing lands there unreviewed. The trigger is already filtered topaths: pyproject.toml, so only a version or dependency change starts a run.Worth noting that this repo's publish step does not pass
skip-existing, so a push touchingpyproject.tomlwithout a version bump would fail at upload rather than no-op. Happy to addskip-existing: truehere if you would rather it be silent.Known limitation
This does not retroactively fix a hotfix branch cut from a commit that predates the
uipath-ubuntu-latestrunner rename. Such a branch produces contexts namedtest / Test (3.11, ubuntu-latest), which do not match what the ruleset requires, so those PRs still need a bypass or a workflow sync. This change is what stops it recurring for branches cut from here on.