commitizen-tools / commitizen-action

Commitizen github action to bump and create changelog
MIT License
75 stars 34 forks source link

Bump commit in detached HEAD state not being pushed to master branch #77

Closed jserpapinto closed 8 months ago

jserpapinto commented 1 year ago

Hey there!

I have this action:

    - id: cz
      name: Create bump and changelog
      if: steps.tag-check.outputs.exists == 'false'
      uses: commitizen-tools/commitizen-action@master
      with:
        github_token: ${{ secrets.GITHUB_TOKEN }}
        push: true
        changelog: true
        commit: true
        branch: master
        no_raise: 21

I was expecting that the branch config would push it into the master branch.

But the commit is in "detached HEAD state", for what I understand.

Can anyone enlighten me?

Thanks!

woile commented 1 year ago

You'll need to provide the full action. If the pipeline is not running against master it won't work