What is the difference between GitHub Actions `on: push` and `on: pull_request` triggers?

Github Medium

Github — Medium

What is the difference between GitHub Actions `on: push` and `on: pull_request` triggers?

Key points

  • `on: push` considers branch specifications
  • `on: pull_request` accounts for various PR events
  • Trigger purposes are not interchangeable
  • Branch and event types are key differentiators

Ready to go further?

Related questions