-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix / update tagged-release workflow #426
Conversation
The 'version' file is created as part of the release process and is supposed to contain the version number of the tarball. The contents of this file become part of /sys/module/wacom/version, which we rely on to understand what driver version users are running. Recent release (1.0.0, 1.1.0, and 1.2.0) have had faulty version files which just contain the text "input-wacom". The issue was traced to the checkout action used by our tagged-release workflow. This action does not include tags by default, which prevents the git-version-gen script from being able to discover what version of the code is being built. In the absence of a git tag, it falls back to using the directory name instead: 'input-wacom'. Signed-off-by: Jason Gerecke <[email protected]>
.github/workflows/tagged-release.yml
Outdated
|
||
## Commits | ||
${{ steps.get-shortlog.outputs.shortlog }} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra whitespace/tab added here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed as above.
.github/workflows/tagged-release.yml
Outdated
body: | | ||
Commit description goes here. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra whitespace/tab added here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Didn't realize the YAML parser would allow me to remove this whitespace, but it looks like its valid after all.
The PR looks good. I tested it with "make dist" and my local repo. Both produced the correct version number. It can be merged once the two whitespaces are removed. |
Several warnings about deprecated functionality are logged when we run the tagged-release workflow. This commit updates the workflow to use the recommended replacements, cleans up some whitespace issues, and simplifies the release process. While we're at it, also tweak the auto-generated release notes to include a marked-up shortlog by default. Signed-off-by: Jason Gerecke <[email protected]>
This is a series of two commits. The first fixes the tagged-release workflow so that it generates a proper "version" file (needed for tarballs to attach the proper suffix to
/sys/module/wacom/version
). The second does some miscellaneous cleanups and updates to the workflow.