[wp-trac] [WordPress Trac] #52643: Scope GitHub Action workflows to specific branches on `pull_request`

WordPress Trac noreply at wordpress.org
Wed Feb 24 19:27:19 UTC 2021


#52643: Scope GitHub Action workflows to specific branches on `pull_request`
------------------------------+-----------------------
 Reporter:  desrosj           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  low               |  Milestone:  5.8
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  has-patch
  Focuses:                    |
------------------------------+-----------------------
 Some GHA workflows are not required in every branch. For example, the
 [https://core.trac.wordpress.org/browser/trunk/.github/workflows/php-
 compatibility.yml PHP Compatibility workflow] was added in 5.5, and does
 not pass in previous branches.

 The `push` trigger is already properly scoped to target branches and tags
 only matching `push` events `>= 5.5`. This needs to be copied over to the
 `pull_request` trigger as well.

 This will prevent unnecessary workflows from running in older branches.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52643>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list