Skip to content

Commit 7947598

Browse files
committed
Fix incorrect JSON parsing for pull requests
Signed-off-by: Nadav Goldin <nadav.goldin@intsights.com>
1 parent ca468ba commit 7947598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runner-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -f $GITHUB_EVENT_PATH ]; then
88
if [ -z "$BRANCH" ]
99
then
1010
# in case of pullresuest event
11-
BRANCH=$(cat $GITHUB_EVENT_PATH | jq -r head.ref)
11+
BRANCH=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.head.ref)
1212
fi
1313
else
1414
echo "Required file on path 'GITHUB_EVENT_PATH' not exists"

0 commit comments

Comments
 (0)