-
-
Notifications
You must be signed in to change notification settings - Fork 617
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
Refactor release workflow #1742
Conversation
Thanks for the PR @trsvchn ! That could solve the issue we talked previously, but I fear a bit when we trigger this on other events... As this part is rather critical, I'd replicate the the lines here and would keep previous file as well... What do you think ? |
@vfdev-5 Exactly, I was thinking about this design: So we remove release trigger for
Then duplicate job from
So, is it okay to have duplicated jobs? |
Well, I heard that we could somehow import yaml in yaml. If it is doable we can refactor that otherwise just duplicate. I do not want to touch already working "release" action that is almost untestable via this repository. Evidently, I had to test it previously on my fork and test.pypy etc but it is annoying to retest |
Importing sounds fantastic, but I'm afraid this feature is not available right now:
|
Well, anyway I think it is not a big deal to replicate 10 lines of yaml. We can also leave a comment about that and keep going :) |
Yes, agreed! DRY principle is all about coding, not configuration :D |
I think DRY is a good principle but heard also opposite suggestions in order to avoid bad design etc... (https://programmingisterrible.com/post/176657481103/repeat-yourself-do-more-than-one-thing-and) |
@vfdev-5 thanks for the link! BTW, Romans used to say Repetitio est mater studiorum :) |
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.
Looks good ! Thanks @trsvchn !
Addresses #1644 (comment)
The aim of this PR is to merge two release jobs into one sequential, consisting of the two steps:
on release:
on push: