8000 chore: optimize semantic release workflow to reduce duplicated configuration by kuitos · Pull Request #23 · unieojs/unieo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore: optimize semantic release workflow to reduce duplicated configuration #23

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

kuitos
Copy link
Collaborator
@kuitos kuitos commented Jun 19, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings June 19, 2025 12:18
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR optimizes the semantic release workflow by removing duplicated configuration related to the release branch and simplifying branch determination logic.

  • Removed the redundant release_branch input and associated branch-setting step.
  • Updated the SEMANTIC_RELEASE_RC and RELEASE_BRANCH variables to rely on github.ref_name.
Comments suppressed due to low confidence (2)

.github/workflows/release.yml:57

  • [nitpick] Consider adding a comment clarifying the use of github.ref_name to set the release branch, to assist future maintainers in understanding this decision.
          RELEASE_BRANCH="${{ github.ref_name }}"

.github/workflows/release.yml:55

  • The updated condition now solely checks if github.ref_name equals 'main' which might change the intended behavior from the previous logic that also considered an empty release_branch input. Please verify that relying only on github.ref_name is acceptable for all release scenarios.
          SEMANTIC_RELEASE_RC: ${{ inputs.create_rc == true && github.ref_name == 'main' }}

@kuitos kuitos merged commit f2c31dd into main Jun 19, 2025
4 checks passed
@kuitos kuitos deleted the optimize/sem branch June 19, 2025 12:19
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.

1 participant
0