From 0a7e3f6a6656c3013cc7a5dad5b6062cd853d7ec Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Wed, 27 Dec 2023 15:34:23 +0800 Subject: [PATCH] Checkout repo using ssh --- .github/workflows/release.yml | 2 ++ .github/workflows/tests.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c5e613..1cb34fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,6 +19,8 @@ jobs: # https://github.com/actions/checkout/blob/v3/README.md - name: Check out code uses: actions/checkout@v3 + with: + ssh-key: ${{ secrets.MY_DEPLOY_KEY }} - name: Prepare release body run: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 91a834c..8bf6a6b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,3 +16,5 @@ jobs: - name: Check out code uses: actions/checkout@v3 + with: + ssh-key: ${{ secrets.MY_DEPLOY_KEY }}