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

GHA to create tag/release #437

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rodrigozhou
Copy link
Contributor

What changed?
GHA to create tag and release.
Added an option to trigger workflow in api-go to create a release.

Why?
Automation.

Breaking changes

Server PR

@rodrigozhou rodrigozhou requested review from a team as code owners July 19, 2024 06:53
@cretz
Copy link
Member

cretz commented Jul 19, 2024

Can you give some background on the savings here on starting a GH workflow vs publishing release in GH?

@rodrigozhou rodrigozhou force-pushed the rodrigozhou/gha-create-tag branch from 5d836bc to bddfbea Compare December 6, 2024 18:52
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

As mentioned at temporalio/api-go#170 (review), I am a bit concerned about the maintenance of these two workflows for such an incredibly simple thing, but if y'all are resolving to maintain them and are now in full control of the release process of this and the API repo, ok.

@rodrigozhou rodrigozhou force-pushed the rodrigozhou/gha-create-tag branch from d0cd2bf to 2cab9a7 Compare December 10, 2024 20:33
@rodrigozhou rodrigozhou requested a review from bergundy December 12, 2024 05:00
tag:
description: "Tag for new version (v1.23.4)"
required: true
create_release:
Copy link
Member

Choose a reason for hiding this comment

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

We should always require a release IMHO, it's part of our release process.

base_tag:
description: "Base tag to generate commit list for release notes"
required: false
skip_sdk_check:
Copy link
Member

Choose a reason for hiding this comment

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

This shouldn't be allowed.

if [[ "${TAG}" =~ ^v.* ]]; then
echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
else
echo "tag=v${TAG}" >> "$GITHUB_OUTPUT"
Copy link
Member

Choose a reason for hiding this comment

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

Don't do this, let users provide the proper version and avoid surprises.

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.

3 participants