Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Manually pull the complement branch matching the current branch name.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jun 10, 2021
1 parent e6245e6 commit 2df7196
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,12 @@ jobs:
with:
path: synapse

- name: Run actions/checkout@v2 for complement
uses: actions/checkout@v2
with:
repository: "matrix-org/complement"
path: complement
# Attempt to check out the same branch of Complement as the PR. If it
# doesn't exist, fallback to master.
- name: Checkout complement
run: |
mkdir -p complement
(wget -O - https://github.com/matrix-org/complement/archive/$GITHUB_HEAD_REF.tar.gz || wget -O - https://github.com/matrix-org/complement/archive/master.tar.gz) | tar -xz --strip-components=1 -C complement
# Build initial Synapse image
- run: docker build -t matrixdotorg/synapse:latest -f docker/Dockerfile .
Expand Down
1 change: 1 addition & 0 deletions changelog.d/10160.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fetch the corresponding complement branch when performing CI.

0 comments on commit 2df7196

Please sign in to comment.