Skip to content

Commit

Permalink
Added branch naming result
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Mar 8, 2024
1 parent ec6629a commit de2b171
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit de2b171

Please sign in to comment.