From 7141d261be4c4e653040c5535fe4f193d9da4d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Grome=C5=A1?= Date: Fri, 3 Jan 2025 19:27:13 +0100 Subject: [PATCH] [CI] Use SSH deploy key for metrics push (#1371) Co-authored-by: jgromes --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7e7e374bc..dd7ee598c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -204,11 +204,18 @@ jobs: runs-on: ubuntu-latest needs: build steps: + - name: Set up SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.ACTIONS_METRICS_DEPLOY_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts + - name: Clone artifact repo run: | cd $PWD/.. - git clone https://${{ github.actor }}:${{ secrets.ACTIONS_METRICS_PUSH_TOKEN }}@github.com/radiolib-org/artifacts.git + git clone git@github.com:radiolib-org/artifacts.git cd artifacts git config --global user.name "${{ github.actor }}" git config --global user.email "${{ github.actor }}@users.noreply.github.com"