Split create_draft_release
worfklow into hotfix / normal
#7601
+249
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of changes
This creates two new GitHub workflows: one to create a draft hotfix release and another to create a normal draft release.
Reason for change
During the recent hotfixes I accidentally ran the current
create_draft_release
workflow on themaster
branch (but it failed). If this would have succeeded we would have pushed the 3.27.0 artifacts to NuGet too soon when we just wanted to push3.26.3
artifacts from that hotfix branch.Splitting this helps prevent that from happening in the future.
Implementation details
.github/workflows/_create_draft_release.yml
create_draft_release.yml
- I copy/pasted that one. I'll paste below in "Other details" the diff between the files.github/workflows/create_hotfix_draft_release.yml
hotfix/*
branchesvNext
milestone (main difference)create_draft_release.yml
would do if ran against ahotfix/
branch.github/workflows/create_normal_draft_release.yml
master
<- we can consider allowing others at a later point, but we don't have any other release lines that we currently supportcreate_draft_release.yml
would do if ran onmaster
Test coverage
None!
Other details
Note that I have NOT removed the current
create_draft_release
workflow. This is to ensure that when it comes time to release if these new workflows do not work that we won't be blocked. Testing workflows is always a bit challenging 🤷I can try to see if this works in a fork though if that is desired :)
https://datadoghq.atlassian.net/browse/LANGPLAT-833