github-tag-action icon indicating copy to clipboard operation
github-tag-action copied to clipboard

Minor & Major version upgrade don't work

Open rantianhua opened this issue 3 years ago • 1 comments

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/[email protected]
        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/[email protected]
  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.

rantianhua avatar Jan 07 '21 06:01 rantianhua

Analysis of 0 commits complete

there wasn't any new commit since the last tag apparently

mathieudutour avatar Jan 07 '21 08:01 mathieudutour