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
624 stars 195 forks source link

It produced tons of tags "v0.0.1-refs-tags-v0-0-1-refs-tags-v0-0-1-refs-tags-v0-0-1-refs-tags-v0-0-1-refs-tags-v0-0-1-refs-tags-v0-0-1-refs-tags-v0-0-1-refs-tags-v0-0-1-refs-tags-v0-0-1-refs-tags-v0-0-1-refs-tags-v0-0-1-fix-apicalls2-0-0-0-0-0-0-0-0-0-0-0.0" #213

Open opendeluxe opened 4 months ago

opendeluxe commented 4 months ago
Screenshot 2024-05-10 at 12 28 35

Github Action:

Screenshot 2024-05-10 at 12 22 10

I put the example from the README in a workflow and the result was tons of tags, one longer than the previous one, concatenating all these tag-names all together with every iteration:

name: Bump version
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Bump version and push tag
        id: tag_version
        uses: mathieudutour/github-tag-action@v6.2
        with:
          github_token: ${{ secrets.TOKEN }}
      - name: Create a GitHub release
        uses: ncipollo/release-action@v1
        with:
          tag: ${{ steps.tag_version.outputs.new_tag }}
          name: Release ${{ steps.tag_version.outputs.new_tag }}
          body: ${{ steps.tag_version.outputs.changelog }}