mathieudutour / github-tag-action

A Github Action to automatically bump and tag master, on merge, with the latest SemVer formatted version. Works on any platform.
https://github.com/marketplace/actions/github-tag
MIT License
641 stars 201 forks source link

Problem with tag generation #133

Closed es1o closed 2 years ago

es1o commented 2 years ago

Hello.

I have a weird problem with tag generation, my code:

      - name: Bump version and push tag
        id: tag_version
        uses: mathieudutour/github-tag-action@d745f2e74aaf1ee82e747b181f7a0967978abee0
        with:
          github_token: ${{ secrets.GH_TOKEN }}
          default_bump: minor

I have an error:

2022-05-17T12:02:34.8267801Z ::set-output name=release_type::minor
2022-05-17T12:02:34.8268482Z ##[debug]steps.tag_version.outputs.release_type='minor'
2022-05-17T12:02:34.8269061Z New version is 1.995.0.
2022-05-17T12:02:34.8269339Z 
2022-05-17T12:02:34.8269905Z ::set-output name=new_version::1.995.0
2022-05-17T12:02:34.8270275Z ##[debug]steps.tag_version.outputs.new_version='1.995.0'
2022-05-17T12:02:34.8270722Z New tag after applying prefix is v1.995.0.
2022-05-17T12:02:34.8270999Z 
2022-05-17T12:02:34.8271475Z ::set-output name=new_tag::v1.995.0
2022-05-17T12:02:34.8271834Z ##[debug]steps.tag_version.outputs.new_tag='v1.995.0'
2022-05-17T12:02:34.8675573Z Changelog is ## [1.995.0](https://github.com/repo/compare/v1.994.0...v1.995.0) (2022-05-17)
2022-05-17T12:02:34.8676320Z 
2022-05-17T12:02:34.8676596Z .
2022-05-17T12:02:34.8676821Z 
2022-05-17T12:02:34.8678135Z ::set-output name=changelog::## [1.995.0](https://github.com/repo/compare/v1.994.0...v1.995.0) (2022-05-17)%0A%0A
2022-05-17T12:02:34.8678839Z ##[debug]steps.tag_version.outputs.changelog='## [1.995.0](https://github.com/repo/compare/v1.994.0...v1.995.0) (2022-05-17)
2022-05-17T12:02:34.8679244Z ##[debug]
2022-05-17T12:02:34.8679462Z ##[debug]'
2022-05-17T12:02:34.8680456Z ##[debug]Creating annotated tag.
2022-05-17T12:02:35.0501569Z ##[error]Not Found
2022-05-17T12:02:35.0570746Z ##[debug]Node Action run completed with exit code 1

I see weirg Error: Not Found. It was working before, I didn't change anything.

es1o commented 2 years ago

Fixed, problem with privileges for GH_TOKEN owner.

tangi-vass commented 2 years ago

I faced the same issue (I was already using a PAT token). I solved it by granting the bot admin privilege to the repo.