From de2b171c503edba55e7d5b9119dfd165738cc495 Mon Sep 17 00:00:00 2001 From: Maarten de Kruijf Date: Fri, 8 Mar 2024 18:31:13 +0100 Subject: [PATCH] Added branch naming result --- .github/workflows/branch.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/branch.yml diff --git a/.github/workflows/branch.yml b/.github/workflows/branch.yml new file mode 100644 index 00000000..7c783b72 --- /dev/null +++ b/.github/workflows/branch.yml @@ -0,0 +1,17 @@ +name: Branch + +on: + push: + branches: + - '**' + +jobs: + check-branch-name: + if: | + ${{! (contains(github.ref_name, 'feature/') || contains(github.ref_name, 'development') + || contains(github.ref_name, 'master') || contains(github.ref_name, 'bugfix/') + || contains(github.ref_name, 'hotfix/') || contains(github.ref_name, 'release/') ) }} + runs-on: ubuntu-latest + steps: + - name: Fail + run: exit 1 \ No newline at end of file