Skip to content

Getting vv with new changes #341

@rkATmsk

Description

@rkATmsk

Hi Team,

    - name: create pre release
      if: |
        (github.event_name == 'workflow_dispatch' && !startsWith(github.ref, 'refs/heads/release/'))
      uses: anothrNick/github-tag-action@v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        WITH_V: true
        PRERELEASE: true
        DEFAULT_BUMP: ${{ inputs.bump || 'patch' }}
        TAG_CONTEXT: branch

copilot debug:

You are still getting tags like vv1.108.27-beta.0 because both WITH_V: true and your code logic are adding a v prefix.

Here’s why:

WITH_V: true sets tagPrefix="v"
TAG_PREFIX: false means the tagPrefix is not overwritten, so it remains "v"
When generating a pre-release, your code does:
new="${tagPrefix}${new}-${suffix}.0"

But new already includes the prefix, so you get vv...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions