branch-env-vars icon indicating copy to clipboard operation
branch-env-vars copied to clipboard

Filter by different Tag names

Open mme-htkw opened this issue 1 year ago • 0 comments

From the documentation i see that i can use !tag notation to set the environment variable, if the action is executed on a tag

Is it also possible to set different values depending on the tag name?

I would like to decide by tag name with a wildcard, so i can set different values if it is a beta release or alpha release

eg:

TEST_VAR: |
      !tag>ALPHA-*:this is the value for TEST_VAR if we are on a tage named "ALPHA-0.1"
      !tag>BETA-*this is the value for TEST_VAR if we are on a tage with wildcard eg: "BETA-0.1"

mme-htkw avatar Mar 07 '23 09:03 mme-htkw