Skip to content

Commit b7b63d0

Browse files
Update
1 parent 4bf5de3 commit b7b63d0

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

.github/workflows/pull_request.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ jobs:
1414
run: cargo test
1515

1616
- name: CI Metrics
17+
# To be more stable you can use a tag e.g.
18+
# https://raw.githubusercontent.com/ci-metrics/script/v0.1.0/run.py
1719
run: |
18-
wget https://raw.githubusercontent.com/JonathanWoollett-Light/cimetrics-script/v0.1.0/run.py
20+
wget https://raw.githubusercontent.com/ci-metrics/script/master/run.py
1921
python3 ./run.py
2022
env:
2123
# Variables to interact with CI Metrics.
22-
PUBLIC_KEY: "6546b543a35b7d5af8c93a7b"
23-
PRIVATE_KEY: ${{ secrets.MetricsPrivateKey }}
24+
PUBLIC_KEY: ${{ vars.METRICS_PUBLIC_KEY }}
25+
PRIVATE_KEY: ${{ secrets.METRICS_PRIVATE_KEY }}
2426
# Variables to upload
2527
HEAD: ${{ github.event.pull_request.head.sha }}
2628
DATA_FILE: "./metrics"

.github/workflows/push.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ jobs:
1616
run: cargo test
1717

1818
- name: CI Metrics
19+
# To be more stable you can use a tag e.g.
20+
# https://raw.githubusercontent.com/ci-metrics/script/v0.1.0/run.py
1921
run: |
20-
wget https://raw.githubusercontent.com/JonathanWoollett-Light/cimetrics-script/v0.1.0/run.py
22+
wget https://raw.githubusercontent.com/ci-metrics/script/master/run.py
2123
python3 ./run.py
2224
env:
2325
# Variables to interact with CI Metrics.
24-
PUBLIC_KEY: "6546b543a35b7d5af8c93a7b"
25-
PRIVATE_KEY: ${{ secrets.MetricsPrivateKey }}
26+
PUBLIC_KEY: ${{ vars.METRICS_PUBLIC_KEY }}
27+
PRIVATE_KEY: ${{ secrets.METRICS_PRIVATE_KEY }}
2628
# Variables to upload
2729
HEAD: ${{ github.event.after }}
2830
DATA_FILE: "./metrics"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# cimetrics-hello-world
1+
# CI Metrics example
22

3-
This is a volatile experiment, you shouldn't use this, instead use https://github.com/bencherdev/bencher.
3+
A repo presenting an example project using CI Metrics.
44

5-
A repo presenting an example system for tracking generic metrics in CI like [codecov](https://about.codecov.io).
5+
CI Metrics is a system to track metrics like how [codecov](https://about.codecov.io) track code coverage.
66

77
![Example PR comment](./pr_comment_example.webp)
88

0 commit comments

Comments
 (0)