on:
push:
branches: [ main ]is more than enough to only run the workflow when a commit is made to main or a PR is merged to main
Using closes #NUMBER for example in one of the following locations closes issue #NUMBER when merged with main.
- Commit Title
- Commit Description
- PR Description
- PR Title
closeclosesclosedfixfixesfixedresolveresolvesresolved