Skip to content

Commit 466ff58

Browse files
Merge remote-tracking branch 'origin/master'
2 parents 6a5b479 + 50a1c2a commit 466ff58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ when a specific GitHub event happens. GitHub actions can also use Codefresh pipe
1111
resulting in a very powerful combination where the first action starts from GitHub, but Codefresh takes care
1212
of 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

@@ -49,7 +49,7 @@ jobs:
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

runner-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
1313
else
1414
echo "Required file on path 'GITHUB_EVENT_PATH' not exists"

0 commit comments

Comments
 (0)