I am new to Jenkins and I have found some posts regarding this problem in StackOverflow but I haven't been successful so far.
I am using Github Webhook to trigger the Jenkins build and I set "Send me everything" in Webhook config.
However, the pipeline is only triggered when a new commit is pushed to the main but it's not when there is a new release. This is my jenkins pipeline config:
Appreciate your help