version: 2.1
# Use a package of configuration called an orb.
orbs:
# Declare a dependency on the welcome-orb
welcome: circleci/welcome-orb@0.4.1
# Orchestrate or schedule a set of jobs
jobs:
custom:
docker:
- image: alpine
when:
steps:
- run:
name: print tag
command: echo << pipeline.git.tag >>
workflows:
# Name the workflow "welcome"
welcome:
# Run the welcome/run job in its own container
jobs:
- custom:
filters:
tags:
only: deploy
- welcome/run
Why does the “custom” job run even if pipeline.git.tag
is empty?
Thank you