Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Sep 10, 2020
2 parents 6a5b479 + 50a1c2a commit 466ff58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ when a specific GitHub event happens. GitHub actions can also use Codefresh pipe
resulting in a very powerful combination where the first action starts from GitHub, but Codefresh takes care
of the actual compilation or deployment in a pipeline.

<img src="/art/github-action-demo.gif?raw=true" width="200px">
<img src="/art/github-action-demo.gif?raw=true" width="600px">

## Prerequisites

Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
env:
PIPELINE_NAME: 'codefresh-pipeline'
TRIGGER_NAME: 'codefresh-trigger'
CF_API_KEY: ${{ secrets.GITHUB_TOKEN }}
CF_API_KEY: ${{ secrets.CF_API_KEY }}
id: run-pipeline
```
### Env variables
Expand Down
2 changes: 1 addition & 1 deletion runner-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ -f $GITHUB_EVENT_PATH ]; then
if [ -z "$BRANCH" ]
then
# in case of pullresuest event
BRANCH=$(cat $GITHUB_EVENT_PATH | jq -r head.ref)
BRANCH=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.head.ref)
fi
else
echo "Required file on path 'GITHUB_EVENT_PATH' not exists"
Expand Down

0 comments on commit 466ff58

Please sign in to comment.