From 11ba5041b557623809e6720865cc88406e405563 Mon Sep 17 00:00:00 2001 From: cawfeecake <48775802+cawfeecake@users.noreply.github.com> Date: Tue, 30 Jul 2024 19:35:03 +0000 Subject: [PATCH] have default branches match entire string instead of substrings --- README.md | 2 +- action.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5625251f3..f4597d45c 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ jobs: #### Filter branches -- **release_branches** _(optional)_ - Comma separated list of branches (JavaScript regular expression accepted) that will generate the release tags. Other branches and pull-requests generate versions postfixed with the commit hash and do not generate any repository tag. Examples: `master` or `.*` or `release.*,hotfix.*,master`... (default: `master,main`). +- **release_branches** _(optional)_ - Comma separated list of branches (JavaScript regular expression accepted) that will generate the release tags. Other branches and pull-requests generate versions postfixed with the commit hash and do not generate any repository tag. Examples: `^master$` or `.*` or `^release.*,^hotfix.*,^master$`... (default: `^master$,^main$`). - **pre_release_branches** _(optional)_ - Comma separated list of branches (JavaScript regular expression accepted) that will generate the pre-release tags. #### Customize the tag diff --git a/action.yml b/action.yml index 7b8bb1da8..77c97b9d0 100644 --- a/action.yml +++ b/action.yml @@ -40,11 +40,11 @@ inputs: description: "Comma separated list of release rules. Format: `:`. Example: `hotfix:patch,pre-feat:preminor`." required: false release_branches: - description: "Comma separated list of branches (bash reg exp accepted) that will generate the release tags. Other branches and pull-requests generate versions postfixed with the commit hash and do not generate any tag. Examples: `master` or `.*` or `release.*,hotfix.*,master`..." + description: "Comma separated list of branches (JavaScript regular expression accepted) that will generate the release tags. Other branches and pull-requests generate versions postfixed with the commit hash and do not generate any repository tag. Examples: `^master$` or `.*` or `^release.*,^hotfix.*,^master$`... (default: `^master$,^main$`)." required: false - default: "master,main" + default: "^master$,^main$" pre_release_branches: - description: "Comma separated list of branches (bash reg exp accepted) that will generate pre-release tags." + description: "Comma separated list of branches (JavaScript regular expression accepted) that will generate the pre-release tags." required: false commit_sha: description: "The commit SHA value to add the tag. If specified, it uses this value instead GITHUB_SHA. It could be useful when a previous step merged a branch into github.ref."