Skip to content

Commit 402a2ac

Browse files
committed
[Add::workflow] add branch name check
1 parent 3d3f845 commit 402a2ac

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/checkBranchName.sh

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/checkBranchName.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010

11-
- name: Branch name
12-
run: sh ./.github/workflows/branchName.sh ${GITHUB_REF##*/}
11+
- name: check branch name
12+
run: echo "${GITHUB_REF#refs/heads/}" |grep -q "feature/" && exit 0 || exit 1

0 commit comments

Comments
 (0)