Skip to content

Commit

Permalink
docs(README): document how to use with CircleCI workflows (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Kubiak authored and janl committed Oct 19, 2017
1 parent d25195c commit f03d1f4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@ before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
```
### CircleCI workflows
In order to use `greenkeeper-lockfile` with CircleCI workflows, it must be in the first job run. Use [sequential job execution](https://circleci.com/docs/2.0/workflows/#sequential-job-execution-example) to ensure the job that runs `greenkeeper-lockfile` is always executed first. For example, if `greenkeeper-lockfile` is run in the `lockfile` job, all other jobs in the workflow must require the `lockfile` job to finish before running:

```yml
workflows:
version: 2
workflow_name:
jobs:
- lockfile
- job1:
requires:
- lockfile
```

## Contributing a CI Service

### Environment information
Expand Down

0 comments on commit f03d1f4

Please sign in to comment.