Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to '.github/workflows/metrics.yaml')
-rw-r--r--.github/workflows/metrics.yaml9
1 files changed, 6 insertions, 3 deletions
diff --git a/.github/workflows/metrics.yaml b/.github/workflows/metrics.yaml
index bbeccd1621..741e559953 100644
--- a/.github/workflows/metrics.yaml
+++ b/.github/workflows/metrics.yaml
@@ -140,11 +140,14 @@ jobs:
- name: Combine json
run: |
- git clone --depth 1 https://[email protected]/rust-analyzer/metrics.git
+ mkdir ~/.ssh
+ echo "${{ secrets.METRICS_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
+ chmod 600 ~/.ssh/id_ed25519
+ chmod 700 ~/.ssh
+
+ git clone --depth 1 [email protected]:rust-analyzer/metrics.git
jq -s ".[0] * .[1] * .[2] * .[3] * .[4] * .[5]" build.json self.json ripgrep-13.0.0.json webrender-2022.json diesel-1.4.8.json hyper-0.14.18.json -c >> metrics/metrics.json
cd metrics
git add .
git -c user.name=Bot -c [email protected] commit --message 📈
git push origin master
- env:
- METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}