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
Part of CI/CD Pipelines in Practice. Next step: Job Dependencies
Choose one answer
on: { workflow_dispatch: { branches: [main] }, push: { tags: [main] } }
on: { push: [main], pull_request: [main] }
on: { push: { branches: [main] }, pull_request: { branches: [main] } }
on: { push: { branches: [main] }, pull_request_target: { tags: [main] } }