We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b5bacc commit 60e3583Copy full SHA for 60e3583
runner-entrypoint.sh
@@ -1,15 +1,13 @@
1
#!/bin/sh
2
3
-printenv
4
-
5
# parse branch
6
# in case of push event
7
-BRANCH=$(cat /github/workflow/event.json | jq -r .ref | awk -F '/' '{print $3}')
+BRANCH=$(cat $GITHUB_EVENT_PATH | jq -r .ref | awk -F '/' '{print $3}')
8
9
if [-z "$BRANCH"]
10
then
11
# in case of pullresuest event
12
- BRANCH=$(cat /github/workflow/event.json | jq -r head.ref)
+ BRANCH=$(cat $GITHUB_EVENT_PATH | jq -r head.ref)
13
fi
14
15
codefresh auth create-context mycontext --api-key $CF_API_KEY
0 commit comments