mathieudutour / mathieudutour/github-tag-action
Minor & Major version upgrade don't work
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 733
- Forks
- 227
- PR merge metrics
- No merged PRs in 30d
Description
Yaml file configuration:
name: Auto Release
on:
push:
branches:
- test
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Bump Version
id: tag_version
uses: mathieudutour/github-tag-action@v5.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: test
create_annotated_tag: true
- name: Github release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
Commit message:
feat: minor release
Github Action log:
##[debug]Evaluating condition for step: 'Bump Version'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Bump Version
##[debug]Loading inputs
##[debug]Evaluating: secrets.GITHUB_TOKEN
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GITHUB_TOKEN'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run mathieudutour/github-tag-action@v5.1
with:
github_token: ***
release_branches: test
create_annotated_tag: true
default_bump: patch
tag_prefix: v
dry_run: false
##[debug]Found Valid Tag: v0.0.6.
##[debug]Found Valid Tag: v0.0.5.
##[debug]Found Valid Tag: v0.0.4.
##[debug]Found Valid Tag: v0.0.4-test.0.
##[debug]Found Valid Tag: v0.0.3-test.0.
##[debug]Found Valid Tag: v0.0.2-test.0.
##[debug]Found Valid Tag: v0.0.1-test.0.
Previous tag was 0.0.6.
::set-output name=previous_tag::0.0.6
##[debug]steps.tag_version.outputs.previous_tag='0.0.6'
Analysis of 0 commits complete: no release
New version is 0.0.7.
::set-output name=new_version::0.0.7
##[debug]steps.tag_version.outputs.new_version='0.0.7'
New tag after applying prefix is v0.0.7.
::set-output name=new_tag::v0.0.7
##[debug]steps.tag_version.outputs.new_tag='v0.0.7'
...
##[debug]
##[debug]
##[debug]
##[debug]'
##[debug]Creating annotated tag.
##[debug]Pushing new tag to the repo.
##[debug]Node Action run completed with exit code 0
##[debug]Finishing: Bump Version
The minor version stays with no change.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied GitHub Actions YAML and the Bump Version step using mathieudutour/github-tag-action@v5.1. Reproduce the workflow with the shown feat commit on the test branch and inspect why the action reports zero analyzed commits. Done means a minor version is generated instead of a patch version for that commit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, github-actions
- Domain
- ci-cd, devops, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100