Skip to content

Commit

Permalink
Alternative way to resolve current branch (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadorequest committed Dec 19, 2020
1 parent 2242217 commit ccc63be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/auto-git-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ jobs:
- uses: paulhatch/semantic-version@v3.1.2
id: next_semantic_version # Output: https://github.com/PaulHatch/semantic-version/blob/master/index.js#L63-L69
with: # See https://github.com/PaulHatch/semantic-version#usage
branch: ${{ env.BRANCH_NAME }} # Use current branch XXX You might want to use main or master
branch: $BRANCH_NAME # Use current branch XXX You might want to use main or master
tag_prefix: "v" # The prefix to use to identify tags
major_pattern: "(MAJOR)" # A string which, if present in a git commit, indicates that a change represents a major (breaking) change
minor_pattern: "(MINOR)" # Same as above except indicating a minor change
format: "${major}.${minor}.${patch}-prerelease.${increment}" # A string to determine the format of the version output
- run: |
echo "Branch name: $BRANCH_NAME"
echo ${{join(steps.next_semantic_version.outputs.*, ' - ')}}
echo "Next version: ${{steps.next_semantic_version.outputs.version}}"
echo "Next version tag: ${{steps.next_semantic_version.outputs.version_tag}}"
Expand Down

1 comment on commit ccc63be

@github-actions
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.