diff --git a/.github/workflows/branch-naming-scheme.yml b/.github/workflows/branch-naming-scheme.yml new file mode 100644 index 0000000000..a7adb364df --- /dev/null +++ b/.github/workflows/branch-naming-scheme.yml @@ -0,0 +1,26 @@ +name: Branch Naming Policy Action + +on: + create: + delete: + pull_request: + branches: + - dev + +jobs: + branch-naming-policy: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run Branch Naming Policy Action + uses: nicklegan/github-repo-branch-naming-policy-action@v1.1.1 + if: github.ref_type == 'branch' || github.ref_type == 'pull_request' + with: + token: ${{ secrets.GITHUB_TOKEN }} + regex: '^(feat|fix)\/(mixed|code|2D|3D|map|char|l10n|magic)\/([a-z0-9]+)' + flags: i + # token: ${{ secrets.REPO_TOKEN }} + # delete: true