Show branch when using workflow_dispatch #15690
-
Currently, when you trigger a workflow manually using Requests for this functionality are also mentioned in #13689 and #11396. I figured it would be useful to call it out specifically since it seems like this would be a bit easier to implement vs the larger request in those other discussions. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 20 replies
-
I really think that would be great |
Beta Was this translation helpful? Give feedback.
-
+1 really hard to figure out which branch was used |
Beta Was this translation helpful? Give feedback.
-
Even more, some actions from market use the target branch name for it's work but, as manual dispatches, even though they ask u which branch to target, does not provide that info on the event (or the way other triggers do) makes some actions fail or be less worthy,. Specific case is a code analysis tool wich sends reports to third party site (their own), missing the branch name makes the report useless there. |
Beta Was this translation helpful? Give feedback.
-
A partial solution would be leverage According to the docs over here: you can pass So an example would be having something like that in the top level of the workflow:
|
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
This is still not implemented, any updates on this? |
Beta Was this translation helpful? Give feedback.
-
For our case the lack of the branch associated with manually triggered workflow causes another issue. When a PR is opened by dependabot, that in turn doesn't have access to secrets, auto-triggered workflows fail. We thought manual trigger is solution for re-running workflows against branch created by dependabot. This is possible. However, these runs, as they have no association with the specific branch, are not being attached to the specific PRs. The only solution in such case is the make fake commit on dependabot branch to re-trigger automatic workflows. Really annoying. |
Beta Was this translation helpful? Give feedback.
-
👋 Hi everyone. Branch names should now show up on workflow runs triggered via |
Beta Was this translation helpful? Give feedback.
👋 Hi everyone. Branch names should now show up on workflow runs triggered via
workflow_dispatch
!