I’d like to trigger a branch deploy using a build hook with a
trigger_branch containing a
/ but I haven’t been able to successfully run a build so far. I’m using curl and have tried several things like url encoding but it seems Netlify always already encodes the branch name but not decodes it so it never works. Could you advise on how to do this?
curl --location --request POST 'https://api.netlify.com/build_hooks/<hash>?trigger_branch=feature/test-ci&trigger_title=Branch%20test%20deploy'
12:42:26 PM: git ref refs/heads/feature/test-ci does not exist or you do not have permission 12:42:26 PM: Failing build: Failed to prepare repo 12:42:26 PM: failed during stage 'preparing repo': git ref refs/heads/feature/test-ci does not exist
Any help is appreciated.