mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
[Docs] Fix schema to replace "tag" by "ref"-filter (#1841)
#1820 followup
This commit is contained in:
@@ -347,15 +347,15 @@ when:
|
||||
|
||||
[Read more about cron](./45-cron.md)
|
||||
|
||||
#### `tag`
|
||||
#### `ref`
|
||||
|
||||
This filter only applies to tag events.
|
||||
Use glob expression to execute a step if the tag name starts with `v`:
|
||||
The `ref` filter compares the git reference against which the pipeline is executed.
|
||||
This allows you to filter, for example, tags that must start with **v**:
|
||||
|
||||
```yaml
|
||||
when:
|
||||
- event: tag
|
||||
tag: v*
|
||||
event: tag
|
||||
ref: refs/tags/v*
|
||||
```
|
||||
|
||||
#### `status`
|
||||
@@ -834,7 +834,7 @@ when:
|
||||
The `ref` filter compares the git reference against which the pipeline is executed.
|
||||
This allows you to filter, for example, tags that must start with **v**:
|
||||
|
||||
```diff
|
||||
```yaml
|
||||
when:
|
||||
event: tag
|
||||
ref: refs/tags/v*
|
||||
|
||||
Reference in New Issue
Block a user