You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Great work! Your GitHub action helped me a lot.
Still, I'm trying to implement a workflow where all pushes outside of main branch create ...-alpha tags and pushes to main branch creates the usual semver tag.
Run SOLIDSoftworks/semver-tags@v1
with:
GITHUB_TOKEN: ***
tag-prefix: v
default-version: 1.0.0
prerelease: false
create-release: main
add-minor-tag: true
add-major-tag: true
incremented-value: patch
dry-run: false
env:
PRERELEASE: false
....
....
Creating new release tag: v1.0.2-false
Release is a prerelease. Skipping major tag...
Release is a prerelease. Skipping minor tag...
and if I removing
env:
PRERELEASE: false
then stdout is:
with:
GITHUB_TOKEN: ***tag-prefix: vdefault-version: 1.0.0prerelease: $add-minor-tag: trueadd-major-tag: trueincremented-value: patchcreate-release: maindry-run: false
...
...
Creating new release tag: v1.0.1-$Release is a prerelease. Skipping major tag...Release is a prerelease. Skipping minor tag...
For now, I have two steps in the same workflow, wich only differs by if condition based on the branch. Still, it will be nice to have the ability to specify prerelease tags based on the branch.
I can create a PR, but there are a few options on how it can be implemented, and I want to discuss it with you first.
Possible implementation:
updating if(prerelease) in the code to check if string is false
updating prerelease variable with logic you had in create-release variable
create prerelease if create-release didn't contain valid branch
wdyt?
The text was updated successfully, but these errors were encountered:
Hi! Great work! Your GitHub action helped me a lot.
Still, I'm trying to implement a workflow where all pushes outside of
main
branch create...-alpha
tags and pushes tomain
branch creates the usual semver tag.What I tried:
Github Action Stdout is
and if I removing
then stdout is:
For now, I have two steps in the same workflow, wich only differs by
if
condition based on the branch. Still, it will be nice to have the ability to specify prerelease tags based on the branch.I can create a PR, but there are a few options on how it can be implemented, and I want to discuss it with you first.
Possible implementation:
if(prerelease)
in the code to check if string isfalse
create-release
variablewdyt?
The text was updated successfully, but these errors were encountered: