Skip to content

feat: GhA dev publishes #4

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 26, 2025
Merged

feat: GhA dev publishes #4

merged 1 commit into from
Jun 26, 2025

Conversation

fpelliccioni
Copy link
Contributor

No description provided.

@fpelliccioni fpelliccioni requested a review from Copilot June 26, 2025 10:29
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

Adds support for publishing development package versions for dev-publish/* branches in both the versioning action and CI workflows.

  • Extend determine-version action to detect dev-publish/* branches and generate a -dev-<feature>.<run> suffix
  • Update main.yml to include dev-publish branches in artifact upload conditions

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ci_utils/.github/actions/determine-version/action.yml Added detection of dev-publish/* branches and custom version formatting
.github/workflows/main.yml Expanded upload conditions to include dev-publish branches
Comments suppressed due to low confidence (4)

ci_utils/.github/actions/determine-version/action.yml:71

  • This elif follows a closing fi on line 68, causing a syntax error. Merge this condition into the existing if/elif block before the fi or move the fi after all branches.
      elif [[ "${{ inputs.github-ref }}" == "refs/heads/dev-publish/"* ]]; then

ci_utils/.github/actions/determine-version/action.yml:72

  • [nitpick] Quote variable expansions when parsing with sed to handle branch names with special characters. For example:
FEATURE_NAME=$(echo "${{ inputs.github-ref }}" | sed -e 's@refs/heads/dev-publish/@@')
        FEATURE_NAME=$(echo $VERSION | sed -e 's/^dev-publish\///')

.github/workflows/main.yml:187

  • Refine the startsWith pattern to include a trailing slash ('refs/heads/dev-publish/') to avoid matching unintended branch names that share the same prefix.
      upload: ${{ github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/release') || startsWith(github.ref, 'refs/heads/hotfix') || startsWith(github.ref, 'refs/heads/dev-publish')) }}

.github/workflows/main.yml:209

  • The same upload condition is duplicated in both build jobs. Consider extracting it into a reusable variable, composite action input, or YAML anchor to reduce repetition.
      upload: ${{ github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/release') || startsWith(github.ref, 'refs/heads/hotfix') || startsWith(github.ref, 'refs/heads/dev-publish')) }}

@fpelliccioni fpelliccioni merged commit 34ad142 into master Jun 26, 2025
7 of 9 checks passed
@fpelliccioni fpelliccioni deleted the feat/gha-pre-releases branch June 26, 2025 10:31
fpelliccioni added a commit that referenced this pull request Jun 26, 2025
fpelliccioni added a commit that referenced this pull request Jun 26, 2025
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