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: cleanup release action #1076

Merged

Conversation

jakobmoellerdev
Copy link
Contributor

What this PR does / why we need it

This fixes several inconsistencies with the release action and cleans it up before we are migrating some of the more substantial work within it:

  1. main no longer gets release notes (as only release branches need to hold release notes)
  2. The release version fetching and resolution is separated into a job just for this purpose, and can be reused across steps that need access to it
  3. The draft release notes are now fetched via gh instead of the old cardinalby/git-get-release-action@v1 because it is much faster and transparent what happens and the action wasn't maintained properly.
  4. The prerelease flag was renamed to release_candidate_name to make it more clear for what it is actually used in the code. The existing docs on the action one can see when triggering them are unchanged
  5. The create_branch option is killed because we dont expect the release to trigger the release branch creation, we expect that to come before. A separate PR can trigger the first release candidate creation from the Branch cutoff however (this will come separately)

Which issue(s) this PR fixes

Part of the release process and transparency rework in #995

Moves Version Generation into a separate workflow for readability reasons.

Removes option to create release branch in release.yaml as it is a separate branch cut step.
…cleanup-release-versioning

# Conflicts:
#	.github/workflows/release.yaml
@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner November 11, 2024 19:49
@github-actions github-actions bot added the chore label Nov 11, 2024
@jakobmoellerdev
Copy link
Contributor Author

A partial run of the changes can be observed here: https://github.com/open-component-model/ocm-cicd-playground/actions/runs/11783730801 (cancelled before publish to avoid artifacts being pushed)

hilmarf
hilmarf previously approved these changes Nov 12, 2024
Copy link
Member

@hilmarf hilmarf left a comment

Choose a reason for hiding this comment

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

besides the cicd-playground looks good

@hilmarf hilmarf added this to the 2024-Q4 milestone Nov 12, 2024
@hilmarf hilmarf added component/github-actions Changes on GitHub Actions or within `.github/` directory chore 🔨 labels Nov 12, 2024
@hilmarf hilmarf enabled auto-merge (squash) November 12, 2024 09:50
@hilmarf hilmarf merged commit 1b60746 into open-component-model:main Nov 12, 2024
17 checks passed
@hilmarf hilmarf added the kind/chore chore, maintenance, etc. label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/github-actions Changes on GitHub Actions or within `.github/` directory kind/chore chore, maintenance, etc.
Projects
Status: 🔒Closed
Development

Successfully merging this pull request may close these issues.

2 participants