From 08ea193a95ae318c31051b31d5fcde70015f5b4c Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 13 Jun 2024 09:41:15 +0200 Subject: [PATCH] Use deploy key to build Element Enterprise --- .github/workflows/build_enterprise.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_enterprise.yml b/.github/workflows/build_enterprise.yml index a9b8706c98..6b47b57c2e 100644 --- a/.github/workflows/build_enterprise.yml +++ b/.github/workflows/build_enterprise.yml @@ -29,10 +29,15 @@ jobs: steps: - uses: actions/checkout@v4 with: - submodules: 'true' # Ensure we are building the branch and not the branch after being merged on develop # https://github.com/actions/checkout/issues/881 ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} + - name: Add SSH private keys for submodule repositories + uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.ELEMENT_ENTERPRISE_DEPLOY_KEY }} + - name: Clone submodules + run: git submodule update --init --recursive - name: Use JDK 17 uses: actions/setup-java@v4 with: