Skip to content

fix(ci): use client_payload.version in desktop workflow#559

Open
mostronatorcoder[bot] wants to merge 1 commit intomainfrom
fix/desktop-workflow-version
Open

fix(ci): use client_payload.version in desktop workflow#559
mostronatorcoder[bot] wants to merge 1 commit intomainfrom
fix/desktop-workflow-version

Conversation

@mostronatorcoder
Copy link
Copy Markdown
Contributor

Problem

When release.yml triggers the desktop build via repository_dispatch, it passes the correct version in client_payload.version. However, the desktop workflow was ignoring this and reading pubspec.yaml from main instead — which still had the previous version at the time the build ran (the changelog PR with the version bump hadn't been merged yet).

This caused desktop assets to be named with the wrong version and uploaded to the previous GitHub Release.

Confirmed on v1.2.3: desktop workflow read 1.2.2 from pubspec.yaml and attached assets to v1.2.2. The missing assets were manually recovered and uploaded.

Fix

Both the build-desktop and publish jobs now use client_payload.version when triggered via repository_dispatch. They fall back to reading pubspec.yaml for manual workflow_dispatch runs.

Testing

Desktop assets for v1.2.3 were manually recovered from artifacts and attached to the release. This fix prevents the issue on all future releases.

…atch

When release.yml triggers the desktop build via repository_dispatch,
it passes the correct version in client_payload.version. The desktop
workflow was ignoring this and reading pubspec.yaml from main instead,
which had the previous version at build time — causing desktop assets
to be attached to the wrong GitHub Release.

Both build-desktop and publish jobs now prefer client_payload.version
when available, falling back to pubspec.yaml for manual workflow_dispatch.
@grunch
Copy link
Copy Markdown
Member

grunch commented Apr 2, 2026

@coderabbitai review

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.

1 participant