Skip to content

Commit a8581aa

Browse files
committed
Auto merge of #15762 - Veykril:metrics-deploy, r=Veykril
fix: Fix metrics workflow to use deploy key I think this should be correct
2 parents 65532e4 + d33fd15 commit a8581aa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/metrics.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,12 @@ jobs:
140140

141141
- name: Combine json
142142
run: |
143-
git clone --depth 1 https://$METRICS_TOKEN@github.com/rust-analyzer/metrics.git
143+
echo "${{ secrets.METRICS_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
144+
chmod 600 ~/.ssh/id_ed25519
145+
146+
git clone --depth 1 git@github.com/rust-analyzer/metrics.git
144147
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
145148
cd metrics
146149
git add .
147150
git -c user.name=Bot -c user.email=dummy@example.com commit --message 📈
148151
git push origin master
149-
env:
150-
METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}

0 commit comments

Comments
 (0)