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

Add a workflow to keep meta-package versions in sync #563

Merged
merged 4 commits into from
Aug 16, 2022

Conversation

LeoColomb
Copy link
Collaborator

@LeoColomb LeoColomb commented Aug 14, 2022

Better than on roots/wordpress as it keeps the workflow logic all in the same place.

Closes previous attempts (sorry for the noise!):

Closes roots/wordpress#1


A bit more explanations:

  • It has an input to be able to dry-run for debugging before actual tags submission.
  • It makes the diff based on tags listed throught GitHub Repo API.
  • It pushes the tags on the meta-package repo (has to be done as a loop, via the matrix).
  • It submits a release to properly resolves Automatically make highest tag the latest release wordpress#1.

Copy link
Member

@swalkinshaw swalkinshaw left a comment

Choose a reason for hiding this comment

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

Might be worth writing a local action in JS for this, but let's give this a try anyway 🚀

Copy link
Member

@retlehs retlehs left a comment

Choose a reason for hiding this comment

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

🚀 Looks good. Thanks for the breakdown!

@LeoColomb
Copy link
Collaborator Author

LeoColomb commented Aug 16, 2022

@swalkinshaw Might or might not 😁
That was my goal: try to avoid creating and maintaining a new GitHub Actions (local or not), and be sure to write as little code as possible.
The workflow ended to be quite large (😭), but at least there is no code files left here and there "just" to keep tags in sync.

I hope this is going to be stable enough to stay as simple as that 🤞

@LeoColomb LeoColomb merged commit fb13e46 into main Aug 16, 2022
@LeoColomb LeoColomb deleted the feat/sync-metapackage branch August 16, 2022 10:16
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.

Automatically make highest tag the latest release
3 participants