From 705a031f6f504ffe21d8ce362659bd54d6b91360 Mon Sep 17 00:00:00 2001 From: Sarabveer Singh Date: Mon, 4 Dec 2023 13:38:55 -0500 Subject: [PATCH] ci(submodule): cleanup --- .github/workflows/submodule.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/submodule.yml b/.github/workflows/submodule.yml index 8a93d8d31..4a91db279 100644 --- a/.github/workflows/submodule.yml +++ b/.github/workflows/submodule.yml @@ -12,11 +12,14 @@ jobs: with: token: ${{ secrets.PA_TOKEN }} submodules: true + - name: Retrieve Github Host Key + run: echo "HOSTS=$(ssh-keyscan github.com)" >> $GITHUB_OUTPUT + id: known_hosts - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.SSH_KEY }} - known_hosts: ${{ secrets.KNOWN_HOSTS }} + known_hosts: ${{ steps.known_hosts.outputs.HOSTS }} - name: Update submodule run: | git submodule update --init --recursive --checkout -f --remote -- "${{github.event.client_payload.module}}"