diff options
author | Luqman <luqazino@gmail.com> | 2024-03-14 15:08:27 +0100 |
---|---|---|
committer | Luqman <luqazino@gmail.com> | 2024-03-14 15:08:27 +0100 |
commit | 4e772211ee1918552bdff88cb2a380a48dfa8e2e (patch) | |
tree | 442e587d92bcc0843aed73f29d7b272041cd8426 | |
parent | 313e3bfa0ff3f1ab1edb961b82e8ee0b07fdde43 (diff) |
Update branch name check to allow docs branch merge to main
-rw-r--r-- | .github/workflows/branch-name-check.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/branch-name-check.yml b/.github/workflows/branch-name-check.yml index 3922e98170c..880bf4768c0 100644 --- a/.github/workflows/branch-name-check.yml +++ b/.github/workflows/branch-name-check.yml @@ -39,7 +39,7 @@ jobs: id: check-main-branch if: ${{ steps.branch-names.outputs.base_ref_branch == 'main' }} run: | - if ! [[ "${{ steps.branch-names.outputs.head_ref_branch }}" =~ ^(hotfix/.*|release/[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+)?)$ ]]; then + if ! [[ "${{ steps.branch-names.outputs.head_ref_branch }}" =~ ^(hotfix/.*|docs/.*|release/[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+)?)$ ]]; then echo "reason=Invalid branch name for a Pull Request to be merged to `${{ steps.branch-names.outputs.base_ref_branch }}` branch. Pull requests must be from a hotfix or release branch." >> $GITHUB_OUTPUT fi |