Skip to content

fix(ci): skip the version bump when task generate is a no-op - #586

Merged
vmyroslav merged 1 commit into
mainfrom
byashimov/NEX-2941/fix-release-workflow-3
Oct 14, 2026
Merged

vmyroslav merged 1 commit into
mainfrom
byashimov/NEX-2941/fix-release-workflow-3

Conversation

@byashimov

Copy link
Copy Markdown
Contributor

.github/workflows/update.yml was writing version.go unconditionally after task generate, so runs where the openapi schema hadn't moved still produced a PR whose only change was the version string. See #585.

Guard the step on git status --porcelain (excluding version.go and the ignored openapi.json). On a clean working tree, the step logs "no changes" and exits, so peter-evans/create-pull-request sees nothing to commit and opens no PR.

`.github/workflows/update.yml` was writing `version.go` unconditionally
after `task generate`, so runs where the openapi schema hadn't moved
still produced a PR whose only change was the version string. See #585.

Guard the step on `git status --porcelain` (excluding `version.go` and
the ignored `openapi.json`). On a clean working tree, the step logs
"no changes" and exits, so `peter-evans/create-pull-request` sees
nothing to commit and opens no PR.
@byashimov
byashimov requested a review from a team as a code owner October 14, 2026 10:21
@vmyroslav
vmyroslav added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit b65bec1 Oct 14, 2026
6 checks passed
@vmyroslav
vmyroslav deleted the byashimov/NEX-2941/fix-release-workflow-3 branch October 14, 2026 10:22
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