Skip to content

Commit bdf4388

Browse files
authored
Merge pull request hashicorp#26 from TimJones/fix-base-branch-filter
Fix base branch filter script
2 parents 9abe306 + 7a6abee commit bdf4388

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)