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
1111resulting in a very powerful combination where the first action starts from GitHub, but Codefresh takes care
1212of the actual compilation or deployment in a pipeline.
1313
14- <img src =" /art/github-action-demo.gif?raw=true " width =" 200px " >
14+ <img src =" /art/github-action-demo.gif?raw=true " width =" 600px " >
1515
1616## Prerequisites
1717
4949 env:
5050 PIPELINE_NAME: 'codefresh-pipeline'
5151 TRIGGER_NAME: 'codefresh-trigger'
52- CF_API_KEY: ${{ secrets.GITHUB_TOKEN }}
52+ CF_API_KEY: ${{ secrets.CF_API_KEY }}
5353 id: run-pipeline
5454```
5555### Env variables
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if [ -f $GITHUB_EVENT_PATH ]; then
88 if [ -z " $BRANCH " ]
99 then
1010 # 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)
1212 fi
1313else
1414 echo " Required file on path 'GITHUB_EVENT_PATH' not exists"
You can’t perform that action at this time.
0 commit comments