-
I want to start my workflow on tags that contains the value “buildRelease” so I’m using ‘*buildRelease*’, in practice the branch name would be something like “2.0.1-buildRelease”, “2.0.2-buildRelease”, how do I specify in the workflow config that I want to build with the code base of “2.0.2-buildRelease” and not the latest image of the code.
I’m checking out the project like this:
So instead of “branch-name” I want to point to the tag name that triggered the workflow. Any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @oth-libs , Please used the following syntax to specify the tag ‘2.0.2-buildRelease’ for checkout action in the workflow run.
|
Beta Was this translation helpful? Give feedback.
-
Thanks @brightran , but I just figured out what I needed. it was actually more like this:
so I wanted to trigger the build with a tag containing a keyword and then building based on that whole tag name, while keeping it generic. cheers |
Beta Was this translation helpful? Give feedback.
-
You can now get the trigger event reference from the context: Look for github.ref_name |
Beta Was this translation helpful? Give feedback.
Thanks @brightran , but I just figured out what I needed. it was actually more like this:
so I wanted to trigger the build with a tag containing a keyword and then building based on that whole tag name, while keeping it generic.
cheers