Skip to content

Commit 5b5bacc

Browse files
test run
1 parent 1bdd738 commit 5b5bacc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

runner-entrypoint.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/bin/sh
22

3-
echo ------------------
3+
printenv
44

55
# parse branch
6+
# in case of push event
67
BRANCH=$(cat /github/workflow/event.json | jq -r .ref | awk -F '/' '{print $3}')
78

89
if [-z "$BRANCH"]
910
then
10-
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)
1113
fi
1214

1315
codefresh auth create-context mycontext --api-key $CF_API_KEY
1416
codefresh auth use-contex mycontext
1517

16-
codefresh run $PIPELINE_NAME --trigger=$TRIGGER_NAME --sha=$GITHUB_SHA --branch=$BRANCH
17-
18-
echo =======================
18+
codefresh run $PIPELINE_NAME --trigger=$TRIGGER_NAME --sha=$GITHUB_SHA --branch=$BRANCH

0 commit comments

Comments
 (0)