Skip to content

Commit 60e3583

Browse files
test run
1 parent 5b5bacc commit 60e3583

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

runner-entrypoint.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
#!/bin/sh
22

3-
printenv
4-
53
# parse branch
64
# in case of push event
7-
BRANCH=$(cat /github/workflow/event.json | jq -r .ref | awk -F '/' '{print $3}')
5+
BRANCH=$(cat $GITHUB_EVENT_PATH | jq -r .ref | awk -F '/' '{print $3}')
86

97
if [-z "$BRANCH"]
108
then
119
# in case of pullresuest event
12-
BRANCH=$(cat /github/workflow/event.json | jq -r head.ref)
10+
BRANCH=$(cat $GITHUB_EVENT_PATH | jq -r head.ref)
1311
fi
1412

1513
codefresh auth create-context mycontext --api-key $CF_API_KEY

0 commit comments

Comments
 (0)