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

chore(ci): rename GUI PR GHA to "release" #3047

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

johncowen
Copy link
Contributor

@johncowen johncowen commented Oct 9, 2024

This PR changed our "Create GUI PR" workflow:

  1. Naming. I changed the name to release.yaml / Build and release to kumahq/kuma because we are releasing the GUI to the binary/kuma. "Create GUI PR" sounds like I am creating a PR on kumahq/kuma-gui
    2. Added a repository-data job that fetches all "topics" from the repository
    3. Uses the repository-data output to look for a auto-release "topic" which when present (as it is currently) performs a "release" as before.

I plan on merging this with the auto-release "topic" applied to prove it works (validate the PR is made). I will then remove the auto-release topic temporarily.

Notes:

  • I "think" I can't access the secrets in a run because I'm PRing from a forked PR, hence will currently fail until this is on master. I would level a better way to test this out (and GH Actions as a whole really) edit: I confirmed offline that my guess here is right.
  • In this PR we have two calls to get the GH token. One during the actual "release" and one to have permissions to access the repo topics. I plan on reusing the one in the repository-data job across the entire workflow once this PR is merged and we know it works as expected 🤞

edit: See comment below, but TLDR; this PR now pretty much just renames the workflow action:

  1. Naming. I changed the name to release.yaml / Build and release to kumahq/kuma because we are releasing the GUI to the binary/kuma. "Create GUI PR" sounds like I am creating a PR on kumahq/kuma-gui

Copy link

netlify bot commented Oct 9, 2024

Deploy Preview for kuma-gui ready!

Name Link
🔨 Latest commit 2b905d1
🔍 Latest deploy log https://app.netlify.com/sites/kuma-gui/deploys/671630d2479e4c0008486b8f
😎 Deploy Preview https://deploy-preview-3047--kuma-gui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@johncowen johncowen force-pushed the chore/auto-release branch 29 times, most recently from 5b34c3b to a89f886 Compare October 9, 2024 12:32
@johncowen johncowen force-pushed the chore/auto-release branch 7 times, most recently from 0ed3cda to 811916e Compare October 9, 2024 12:58
Copy link
Contributor Author

@johncowen johncowen left a comment

Choose a reason for hiding this comment

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

Notes:

.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
@johncowen johncowen marked this pull request as ready for review October 9, 2024 13:36
@johncowen johncowen requested a review from a team as a code owner October 9, 2024 13:36
@johncowen johncowen self-assigned this Oct 9, 2024
@johncowen
Copy link
Contributor Author

@lahabana showed me a button in the GH UI that does exactly what this PR does 😆 , so a lot of this PR is no longer needed.


There are some bits here that I'd like to keep, mostly the renaming of "Create GUI PR" to "Release". We'd also like to improve the "release" PRs to include more changelog information.

For the moment I'm going to put this back into draft. While I re-jiggle this about a bit.

@johncowen johncowen marked this pull request as draft October 10, 2024 10:07
@johncowen johncowen marked this pull request as ready for review October 10, 2024 10:40
@johncowen johncowen changed the title chore(ci): add condition for "auto-releasing" chore(ci): rename GUI PR GHA to "release" Oct 21, 2024
@johncowen johncowen merged commit e27e703 into kumahq:master Oct 21, 2024
15 checks passed
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