-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: hotfix workflow #19
Conversation
title: "${{ inputs.type == 'release' && 'Release' || 'Hotfix' }} ${{ inputs.version }}" | ||
branch: "${{ inputs.type }}/${{ inputs.version }}" | ||
commit-message: "${{ inputs.type == 'release' && 'feat' || 'fix' }}: bump version to ${{ inputs.version }}" |
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.
.github/workflows/tag-release.yml
Outdated
tag_name: ${{ steps.get-version.outputs.version }} | ||
target_commitish: ${{ startsWith(github.event.pull_request.head.ref, 'release/') && github.event.pull_request.head.ref || github.event.pull_request.base.ref }} |
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.
Shouldn't this be ${{ github.event.pull_request.base.ref }}
in all cases? That is, if the base of the PR is dev
, then the release is created from dev
, and if the base is release/
, then the release is created from release/
.
fc401c7
to
4837ee4
Compare
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.
Approved pending some minor fixes in #26
Signed-off-by: Thomas Chataigner <[email protected]>
Signed-off-by: Thomas Chataigner <[email protected]>
Signed-off-by: Thomas Chataigner <[email protected]>
Signed-off-by: Thomas Chataigner <[email protected]>
Signed-off-by: Thomas Chataigner <[email protected]>
Co-authored-by: Samuel Burnham <[email protected]>
Signed-off-by: Thomas Chataigner <[email protected]>
* ci: Update release workflow * fix: Enforce `major.minor` version only for initial release * fix: Use full `major.minor.patch` for `Cargo.toml` and tag
8601da5
to
522b39b
Compare
* ci: release ci Signed-off-by: Thomas Chataigner <[email protected]> * ci: add release creation Signed-off-by: Thomas Chataigner <[email protected]> * ci: fix release files Signed-off-by: Thomas Chataigner <[email protected]> * ci: update based on review Signed-off-by: Thomas Chataigner <[email protected]> * ci: dry files & hotfix flow Signed-off-by: Thomas Chataigner <[email protected]> * Apply suggestions from code review Co-authored-by: Samuel Burnham <[email protected]> * ci: base for PR Signed-off-by: Thomas Chataigner <[email protected]> * ci: Update release workflow (#26) * ci: Update release workflow * fix: Enforce `major.minor` version only for initial release * fix: Use full `major.minor.patch` for `Cargo.toml` and tag --------- Signed-off-by: Thomas Chataigner <[email protected]> Co-authored-by: Samuel Burnham <[email protected]>
This PR udpates the workflow files for release to also be used for a hotfix flow. The flow would work as follow:
bump-version-PR
flow to create a new branch a PR to the desiredrelease
branchhotfix
branch to implement the needed fixesrelease
branchPart of #13