[CI] Use SSH deploy key for metrics push (#1371)

Co-authored-by: jgromes <jan.gromes>
This commit is contained in:
Jan Gromeš 2025-01-03 19:27:13 +01:00 committed by GitHub
parent 680e88c739
commit 7141d261be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"