File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ when a specific GitHub event happens. GitHub actions can also use Codefresh pipe
11
11
resulting in a very powerful combination where the first action starts from GitHub, but Codefresh takes care
12
12
of the actual compilation or deployment in a pipeline.
13
13
14
- <img src =" /art/github-action-demo.gif?raw=true " width =" 200px " >
14
+ <img src =" /art/github-action-demo.gif?raw=true " width =" 600px " >
15
15
16
16
## Prerequisites
17
17
49
49
env:
50
50
PIPELINE_NAME: 'codefresh-pipeline'
51
51
TRIGGER_NAME: 'codefresh-trigger'
52
- CF_API_KEY: ${{ secrets.GITHUB_TOKEN }}
52
+ CF_API_KEY: ${{ secrets.CF_API_KEY }}
53
53
id: run-pipeline
54
54
```
55
55
### Env variables
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if [ -f $GITHUB_EVENT_PATH ]; then
8
8
if [ -z " $BRANCH " ]
9
9
then
10
10
# 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)
12
12
fi
13
13
else
14
14
echo " Required file on path 'GITHUB_EVENT_PATH' not exists"
You can’t perform that action at this time.
0 commit comments