generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 9
62 lines (53 loc) · 1.71 KB
/
metrics.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Metrics
on:
schedule:
- cron: '0 12 * * 1'
workflow_dispatch:
jobs:
dora:
name: DORA Metrics
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Checkout devops-deployment-metrics code
uses: actions/checkout@v4
with:
repository: flexion/devops-deployment-metrics
path: devops-deployment-metrics
- name: Install dependencies
working-directory: devops-deployment-metrics
run: poetry install
- name: Set up config file
uses: DamianReeves/write-file-action@master
with:
path: devops-deployment-metrics/config.toml
write-mode: overwrite
contents: |
[general]
time-slice-days = 7
start-date = 2022-12-01T00:01:00
date-format = "%Y-%m-%d"
[[repositories]]
owner = "CDCgov"
repo = "trusted-intermediary"
id = "42635194"
deployment-frequency = "df"
change-fail-rate = "cf"
mean-time-to-recover = "mttrs"
deployment-log = "deployments"
- name: Run DORA metrics application
working-directory: devops-deployment-metrics
env:
GITHUB_USERNAME: None
GITHUB_TOKEN: ${{ secrets.DORA_METRICS_ACCESS_TOKEN_JOHNNKING }}
run: poetry run devops-deployment-metrics -c config.toml
- name: Upload output metric files
uses: actions/upload-artifact@v4
with:
name: dora-metrics
path: devops-deployment-metrics/data/*.csv