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

fix: match `release_branches` defaults exactly instead of matching as substrings #220

Open cawfeecake opened 1 month ago

cawfeecake commented 1 month ago

Problem

If a repo has a branch with a name that includes a substring of one of the defaults values of release_branches, e.g. maintenance, this action will determine it to be a release branch when it should only be matching exact main or master.

Fix

Prefix ^ and suffix $ makes matches exact. Also aligned description: with what is in README