Workflow Triggers
In a GitHub Actions workflow, which on: block runs the workflow for pushes to main and for pull requests targeting main?
on:
main
Choose one answer
on: { workflow_dispatch: { branches: [main] } }
on: main
on: { push: { branches: [main] }, pull_request: { branches: [main] } }
on: { schedule: [main] }