Branch Naming Policy Action #88
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Branch Naming Policy Action | |
| on: | |
| create: | |
| delete: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| branch-naming-policy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Run Branch Naming Policy Action | |
| uses: nicklegan/[email protected] | |
| if: github.ref_type == 'branch' || github.ref_type == 'pull_request' | |
| with: | |
| token: ${{ secrets.REPO_TOKEN }} | |
| regex: '^(feature|fix|docs|refactor|test|release|chore|experiment)\/[a-zA-Z0-9-]+$' | |
| delete: true |