Skip to content

Commit

Permalink
Merge branch 'master' into dont-use-shell-quoting-to-unmarshal-command
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Jul 18, 2022
2 parents e4d6352 + c3eed4e commit 7807f03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/docs/20-usage/20-pipeline-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ when:
event: tag
```

Execute a step if the build event is a `tag` created from the specified branch:
Execute a step if the pipeline event is a `push` to a specified branch:

```diff
when:
event: tag
+ branch: master
event: push
+ branch: main
```

Execute a step for all non-pull request events:
Expand Down
8 changes: 4 additions & 4 deletions docs/docs/20-usage/35-advanced-yaml-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ To convert this:
pipeline:
test:
image: golang:1.18
command: go test ./...
commands: go test ./...
build:
image: golang:1.18
command: build
commands: build
```
Just add a new section called **variables** like this:
Expand All @@ -25,11 +25,11 @@ Just add a new section called **variables** like this:
test:
- image: golang:1.18
+ image: *golang_image
command: go test ./...
commands: go test ./...
build:
- image: golang:1.18
+ image: *golang_image
command: build
commands: build
```
## Example of YAML override and extension
Expand Down

0 comments on commit 7807f03

Please sign in to comment.