From eb2118e45101745e85e8fa5d18d3d715997b5675 Mon Sep 17 00:00:00 2001 From: Sam Van Campenhout Date: Tue, 17 May 2022 16:11:53 +0200 Subject: [PATCH] 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 --- docs/docs/20-usage/20-pipeline-syntax.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/docs/20-usage/20-pipeline-syntax.md b/docs/docs/20-usage/20-pipeline-syntax.md index 2db15f0b4..1d9fb32aa 100644 --- a/docs/docs/20-usage/20-pipeline-syntax.md +++ b/docs/docs/20-usage/20-pipeline-syntax.md @@ -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`