Skip to content

Commit 2f04155

Browse files
Update README.md
1 parent 30bd283 commit 2f04155

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,19 @@ runs:
6464
An example of workflow
6565

6666
```
67-
workflow "pipeline runner" {
68-
on = "push"
69-
resolves = "run pipeline"
70-
}
71-
72-
action "run pipeline" {
73-
uses = "./"
74-
env = {
75-
PIPELINE_NAME = "codefresh-pipeline"
76-
TRIGGER_NAME = "codefresh-trigger"
77-
}
78-
secrets = ["CF_API_KEY"]
79-
}
67+
version: 1.0
68+
on:
69+
push:
70+
branches:
71+
- master
72+
73+
jobs:
74+
build:
75+
actions:
76+
- name: 'run pipeline'
77+
uses: ./
78+
with:
79+
PIPELINE_NAME: 'codefresh-pipeline'
80+
TRIGGER_NAME: 'codefresh-trigger'
81+
id: run-pipeline
8082
```

0 commit comments

Comments
 (0)