File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 "
Original file line number Diff line number Diff line change 1+ # Bug Fix
2+
3+ Changed the ` branches ` and ` ignore_branches ` to use extended regular
4+ expressions.
5+
6+
7+
8+
9+
You can’t perform that action at this time.
0 commit comments