mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-16 19:35:14 +00:00
Format depends_on example (#3118)
There is incosistent spaces in the example, and base on it it is not clear where the `depends_on` should be. Update the code block to have consistent number of spaces. https://woodpecker-ci.org/docs/next/usage/workflow-syntax#depends_on Before: <img width="1013" alt="image" src="https://github.com/woodpecker-ci/woodpecker/assets/21104/6299ebf4-4cc7-42d9-8525-cdf4491c4c99"> After: <waiiting> --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
c3aec61bfc
commit
bcc210da62
1 changed files with 12 additions and 12 deletions
|
@ -449,21 +449,21 @@ Normally steps of a workflow are executed serially in the order in which they ar
|
|||
|
||||
```diff
|
||||
steps:
|
||||
build: # build will be executed immediately
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
build: # build will be executed immediately
|
||||
image: golang
|
||||
commands:
|
||||
- go build
|
||||
|
||||
deploy:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: foo/bar
|
||||
deploy:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: foo/bar
|
||||
+ depends_on: [build, test] # deploy will be executed after build and test finished
|
||||
|
||||
test: # test will be executed immediately as no dependencies are set
|
||||
image: golang
|
||||
commands:
|
||||
- go test
|
||||
test: # test will be executed immediately as no dependencies are set
|
||||
image: golang
|
||||
commands:
|
||||
- go test
|
||||
```
|
||||
|
||||
### `volumes`
|
||||
|
|
Loading…
Reference in a new issue