Skip to content
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

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Conversation

jigpu
Copy link
Member

@jigpu jigpu commented Jun 7, 2024

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.

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]>

## Commits
${{ steps.get-shortlog.outputs.shortlog }}

Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed as above.

body: |
Commit description goes here.

Copy link
Member

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.

Copy link
Member Author

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.

@Pinglinux
Copy link
Member

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]>
@Pinglinux Pinglinux merged commit c0b6798 into linuxwacom:master Jun 10, 2024
12 checks passed
@jigpu jigpu deleted the release-fix branch July 24, 2024 22:18
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