Neon Github action for deleting a branch is flakey
I have the following github action script, and often times the delete-branch step fails

6 Replies
stormy-gold•16mo ago
That's strange, the error looks like
${{ env.NEON_BRANCH_ID }} contains no value. Can you double check that it's being written?deep-jadeOP•16mo ago
The branch itself is being created
flat-fuchsia•16mo ago
What happens if you use the
branch_id from the create branch action step instead of adding the variable to the GitHub Env?
So in your case you would do ${{ steps.create-feat-branch.outputs.branch_id }}deep-jadeOP•16mo ago
actually curious if i can get rid of the delete-branch-action step altogether. Does the create-branch-action automatically handle branch cleanup?
flat-fuchsia•16mo ago
Does the create-branch-action automatically handle branch cleanup?It doesn't
stormy-gold•16mo ago
We are planning on a new action that would manage branch cleanup and creation in the same action