Tag execution only for master branch

Hey guys,
I’ve got a question and hope someone here can help me with that: (Sorry if there was a discussion about this before)

Scenario:
After merging any branch into master, a specific workflow is triggered automatically. This workflow contains 5 jobs and one of them is responsible to generate the package of my project.

Do anyone know if it would be possible to configure this workflow be executed only when a tag is created, all 5 jobs? How can I guarantee that the code used will be from master branch if CIRCLE_BRANCH is empty when the workflow is triggered by a TAG? Do I need to set the environment variable manually?

Thanks in advance.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.