The original GitHub Actions configuration (see commit
2ed8cc4)
incorrectly assumed that GitHub will use that configuration (stored in
the master branch) for testing _all_ repository branches. In reality,
GitHub uses configuration from the being-tested branch. Thus, we do not
need to (and, hence, should not) list any branches in the X branch
configuration, with the exception of the X branch itself and the "auto"
branch where all PRs (including all X-targeting PRs) are staged for the
final "as if merged" testing.
-# Test the default branch, supported release branches, and their PRs
name: GitHub CI
on:
push:
- branches: [ "master", "v5", "auto" ]
+ # test this branch and staged PRs based on this branch code
+ branches: [ "master", "auto" ]
pull_request:
- branches: [ "master", "v5" ]
+ # test PRs targeting this branch code
+ branches: [ "master" ]
env:
# empty except for pull_request events