diff --git a/.github/actions/set-labels/action.yml b/.github/actions/set-labels/action.yml index c0703c2..79c1319 100644 --- a/.github/actions/set-labels/action.yml +++ b/.github/actions/set-labels/action.yml @@ -16,6 +16,7 @@ runs: script: | const { NUMBER, OWNER, REPO, TITLE } = process.env const regex = /^(build|chore|ci|deps|docs|feat|fix|perf|refactor|revert|style|test)(?:\((\S+)\))?(!)?: (.+)$/; + const releaseRegex = /^chore\(\S*\): release/; console.log(`Checking title "${TITLE}"`); console.log("For more information: https://www.conventionalcommits.org/en/v1.0.0/"); @@ -49,7 +50,7 @@ runs: labels.push("patch"); } - if (TITLE.startsWith("chore(main): release")) { + if (releaseRegex.test(TITLE)) { labels.push("autorelease: pending"); }