- Fetches branch name as output
- Validates the branch naming convention with
/(^(feature|bugfix|hotfix)\/(LSP|CB)-[0-9]{1,5}\/[0-9a-zA-Z_-]+$)|(^(development|staging|production|qa|labs)$)/;
rules:
name: Rules
runs-on: ubuntu-latest
steps:
- name: Fetch Branch Name
uses: aptyInc/[email protected]
id: branch
- name: Print branch Name
run: echo "${{steps.branch.outputs.branch_name}}"