Skip to content

Commit 7a6abee

Browse files
committed
Fix base branch filter script
1 parent 9abe306 commit 7a6abee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base-branch-filter/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
regex="$*"
66
base_branch=$(jq -r .pull_request.base.ref "$GITHUB_EVENT_PATH")
77

8-
if "$actual" | grep -q "$regex"; then
8+
echo "$base_branch" | grep -Eq "$regex" || {
99
echo "base branch \"$base_branch\" does not match \"$regex\""
1010
exit 78
11-
fi
11+
}

0 commit comments

Comments
 (0)