I need to run only
on branches what ends with specified env
variable.
Let's pretend that we are on feat/project-name
branch and this is may workflow.yml
:
env:
PROJECT: project-name
on:
push:
# only for branches what ends with given project name
branches:
- "**$PROJECT"
Above not work. Below, hard coded is OK:
env:
PROJECT: project-name
on:
push:
# only for branches what ends with given project name
branches:
- "**project-name"
Tried with: "**${{ env.PROJECT }}"
and other configuration and nothing works.