What works for me was to go to the branch you need to replace, and find the build file (it is inside ./github/workflow
folder), and replace the branch with the current branch name. This will restart the build process and now you build will redirect to the new branch instead of the old branch.