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

Suggestion - Use github.token #179

Closed PieterjanDeClippel closed 1 year ago

PieterjanDeClippel commented 1 year ago

Readme says:

Usage

name: Bump version
on:
  push:
    branches:
      - master
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Bump version and push tag
        id: tag_version
        uses: mathieudutour/github-tag-action@v6.1
        with:
          github_token: ${{ secrets.GITHUB_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 }}

Normally you should be able to replace ${{ secrets.GITHUB_TOKEN }} with just ${{ github.token }} like here or here

mathieudutour commented 1 year ago

I don't think so: https://github.com/mathieudutour/github-tag-action/pull/154#issuecomment-1418989677