summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-07-01 16:41:01 +0100
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-07-01 16:55:14 +0100
commitae1712dd7146e24fc70ab88c0eb8e325488e8431 (patch)
tree878136271f571283ae109670929f03978cc56b25 /.ci
parentFactor out some common commands into a script (diff)
downloadsynapse-ae1712dd7146e24fc70ab88c0eb8e325488e8431.tar.xz
Factor out Complement checking-out
Diffstat (limited to '.ci')
-rwxr-xr-x.ci/scripts/setup_complement_prerequisites.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/.ci/scripts/setup_complement_prerequisites.sh b/.ci/scripts/setup_complement_prerequisites.sh
index 62cf19b450..4848901cbf 100755
--- a/.ci/scripts/setup_complement_prerequisites.sh
+++ b/.ci/scripts/setup_complement_prerequisites.sh
@@ -29,3 +29,8 @@ block Install custom gotestfmt template
   cp synapse/.ci/complement_package.gotpl .gotestfmt/github/package.gotpl
 endblock
 
+block Check out Complement
+  # Attempt to check out the same branch of Complement as the PR. If it
+  # doesn't exist, fallback to HEAD.
+  synapse/.ci/scripts/checkout_complement.sh
+endblock