Github actions for create and delete branch failing/flakey
I am using GH actions to create a temporary branch to use for testing, and then delete the branch at the end of the github workflow.
However, i'm getting weird messages.
1. ephemeral branch apparently already exists, but the branch ID is null
2. cannot delete branch?
I've attached the code for my github workflow and the logs from the actions




4 Replies
sensitive-blue•2y ago
Hmm, do you run into the same issue if you're using the latest version of the GitHub action? (btw it also includes sslmode=require so no need to append it)
I'm guessing your action works the first time and then fails when re-running?
eager-peachOP•2y ago
it's actually pretty flakey -- I have some workflows that run fine the first time, some that fail the very first time they're run
will try with create-branch-action@v5 and see how that goes
vicious-gold•2y ago
@leosmissingpaw
How did it go with the v5?
eager-peachOP•2y ago
still failing with the same errors with the delete branch action after the create-branch-action version update 😦 @Rishi Raj Jain