Skip to content

Commit e444ded

Browse files
Merge pull request #5 from nvgoldin/fix_pullrequest_parsing
Fix incorrect JSON parsing for pull requests
2 parents ca468ba + 7947598 commit e444ded

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)