-
Notifications
You must be signed in to change notification settings - Fork 397
Open
Description
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...
tmoreau-sbp, massimo-synth, Gary-H9, zergeborg, BenChand and 4 more
Metadata
Metadata
Assignees
Labels
No labels