mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-04-26 21:44:44 +00:00
Clarify the when.tag
example (#918)
Clarify the `when.tag` example: - The `tag` filter is only used if it's also a `tag` event, so this makes the example clearer for new users. - mention glob
This commit is contained in:
parent
7d7d75d7e5
commit
eb2118e451
1 changed files with 4 additions and 2 deletions
|
@ -376,11 +376,13 @@ when:
|
||||||
|
|
||||||
#### `tag`
|
#### `tag`
|
||||||
|
|
||||||
Execute a step if the tag name starts with `release`:
|
This filter only applies to tag events.
|
||||||
|
Use glob expression to execute a step if the tag name starts with `v`:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
when:
|
when:
|
||||||
tag: release*
|
event: tag
|
||||||
|
tag: v*
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `status`
|
#### `status`
|
||||||
|
|
Loading…
Reference in a new issue