Skip to content

Commit f20c7f7

Browse files
committed
Using extended regular expressions for branches and ignore_branches
1 parent 9b6e136 commit f20c7f7

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ resources:
9393
source:
9494
uri: git@github.com:my-org/my-repo.git
9595
branches: '.*'
96-
ignore_branches: '\(master\|deploy\)'
96+
ignore_branches: '(master|deploy)'
9797
```
9898
9999
## Behavior

assets/check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ filter_branches() {
6565
local branch_refs="$(tr ' ' "\n")"
6666

6767
if [ -n "$branches" ] ; then
68-
branch_refs="$(echo "$branch_refs" | grep ":$branches$")"
68+
branch_refs="$(echo "$branch_refs" | grep -E ":$branches$")"
6969
fi
7070

7171
if [ -n "$ignore_branches" ] ; then
72-
branch_refs="$(echo "$branch_refs" | grep -v ":$ignore_branches$")"
72+
branch_refs="$(echo "$branch_refs" | grep -v -E ":$ignore_branches$")"
7373
fi
7474

7575
echo "$branch_refs"

ci/release_notes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Bug Fix
2+
3+
Changed the `branches` and `ignore_branches` to use extended regular
4+
expressions.
5+
6+
7+
8+
9+

0 commit comments

Comments
 (0)