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:
Sam Van Campenhout 2022-05-17 16:11:53 +02:00 committed by GitHub
parent 7d7d75d7e5
commit eb2118e451
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -376,11 +376,13 @@ when:
#### `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
when:
tag: release*
event: tag
tag: v*
```
#### `status`