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 1bdd738 commit 5b5baccCopy full SHA for 5b5bacc
runner-entrypoint.sh
@@ -1,18 +1,18 @@
1
#!/bin/sh
2
3
-echo ------------------
+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}')
8
9
if [-z "$BRANCH"]
10
then
- BRANCH=$(cat /github/workflow/event.json | jq -r head.ref)
11
+ # in case of pullresuest event
12
+ BRANCH=$(cat /github/workflow/event.json | jq -r head.ref)
13
fi
14
15
codefresh auth create-context mycontext --api-key $CF_API_KEY
16
codefresh auth use-contex mycontext
17
-codefresh run $PIPELINE_NAME --trigger=$TRIGGER_NAME --sha=$GITHUB_SHA --branch=$BRANCH
-
18
-echo =======================
+codefresh run $PIPELINE_NAME --trigger=$TRIGGER_NAME --sha=$GITHUB_SHA --branch=$BRANCH
0 commit comments