mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-08-11 00:06:31 +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
@ -449,21 +449,21 @@ Normally steps of a workflow are executed serially in the order in which they ar
|
|||||||
|
|
||||||
```diff
|
```diff
|
||||||
steps:
|
steps:
|
||||||
build: # build will be executed immediately
|
build: # build will be executed immediately
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- go build
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
+ depends_on: [build, test] # deploy will be executed after build and test finished
|
+ depends_on: [build, test] # deploy will be executed after build and test finished
|
||||||
|
|
||||||
test: # test will be executed immediately as no dependencies are set
|
test: # test will be executed immediately as no dependencies are set
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
- go test
|
- go test
|
||||||
```
|
```
|
||||||
|
|
||||||
### `volumes`
|
### `volumes`
|
||||||
|
Loading…
Reference in New Issue
Block a user