Action creates semver tag (vX.Y.Z) when pull request is merged. New version is calculated based on PR labels: "major", "minor". Patch version is incremented by default.
PersonalAccessToken with repo scope.
Branch to tag.
# .github/workflows/auto-semver-tag.yml
name: auto-semver-tag
on:
pull_request_target:
types: [ closed ]
jobs:
tagging:
runs-on: ubuntu-latest
steps:
- name: auto-semver-tag
uses: 6de1ay/auto-semver-tag@master
with:
release_branch: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}