Skip to content

Conversation

@Perdiga
Copy link
Collaborator

@Perdiga Perdiga commented Jul 16, 2025

…onditionally

Copilot AI review requested due to automatic review settings July 16, 2025 00:46
Copy link

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 updates the GitHub Actions release workflow to handle pre-release tags differently from regular releases. The change adds conditional logic to distinguish between regular releases and pre-releases, creating separate workflows for each type.

Key Changes:

  • Separates pre-release tag creation from regular release commit and tag creation
  • Modifies existing steps to only run for non-pre-release versions
  • Adds dedicated steps for pre-release tag creation and pushing

- name: Create release commit and tag
if: ${{ github.event.inputs.dry_run == 'false' }}
if: ${{ github.event.inputs.dry_run == 'false' && needs.validate.outputs.is_prerelease == 'false' }}
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

Consider extracting the condition 'github.event.inputs.dry_run == 'false' && needs.validate.outputs.is_prerelease == 'false'' into a reusable variable or expression since it's repeated multiple times throughout the workflow. This would improve maintainability and reduce duplication.

Copilot uses AI. Check for mistakes.
echo "Release commit and tag created"
- name: Create pre-release tag
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

[nitpick] The pre-release tag creation logic duplicates the VERSION variable assignment pattern used in other steps. Consider if this duplication could be reduced through workflow-level environment variables or job outputs.

Copilot uses AI. Check for mistakes.
@Perdiga Perdiga merged commit 7a36aa4 into main Jul 16, 2025
8 checks passed
@fernandosantos-br fernandosantos-br deleted the feature-refactor branch July 21, 2025 21:46
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.

2 participants