"Unknown Branch" when recording github action cypress runs #25854
Replies: 2 comments
-
Discovered its because I am running Cypress on the deployment status step which doesn't have a reference to the branch name. I can get that as part of the action, does anyone know how to pass on that information as part of the recording? |
Beta Was this translation helpful? Give feedback.
-
For people found this thread, the root cause of the difficulty is that in github deployment_status event, there's no information about the git branch which triggered the deployment initially. In order to solve this issue, we can manage to save github branch status in the deployed application (for the application build step, it is pretty easy to get current github branch information). For example, in your build script save github branch to a public accessible file that contains the branch information. Here's my solution for a Next.js application deployed to Vercel.
Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
I can't find any reference to this, I'm consistently seeing all runs recorded under "Unknown Branch" and I don't know what I need to pass as an env var to cypress dashboard for it to recognize the branch.
Beta Was this translation helpful? Give feedback.
All reactions