internal/ci: support running e2e tests on pushes to ci/test
Currently, the e2e tests only run in CI on commits to master. The
alternative is to setup a local environment with secrets etc. This is
expensive, painful, and a security risk.
Instead allow trusted people to push to ci/test and have that branch
also be a valid condition for triggering the e2e tests. We continue to
do this only in the main repository, because the secrets are not
available elsewhere (intentionally so).
There is no increased risk of relaxing this condition to allow
triggering these tests from ci/test, because pushing to that branch is
already an action that is privileged.
Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I035ed4f8d398f8dfe70a5f3db988697f9aaaadc1
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193330
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>