-
Notifications
You must be signed in to change notification settings - Fork 77
41 lines (34 loc) · 1.19 KB
/
aggregate-results.yaml
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
name: Aggregate Benchmark results
on:
workflow_dispatch:
push:
branches:
- result-data
concurrency: aggregate-results-${{ github.ref }}
jobs:
run:
permissions:
contents: write
name: Aggregate results
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Aggregate data
run: |
jq -cs '.' `find benchmark -name result-*.json` > benchmark-results.json
jq -cs '.' `find scalability -name result-*.json` > scaletest-results.json
jq -cs '.' `find rosa_scalability -name result-*.json` > rosa-scaletest-results.json
- name: Archive data
uses: actions/upload-artifact@v3
with:
name: results
path: '*-results.json'
retention-days: 5
- name: Publish data
if: github.repository == 'keycloak/keycloak-benchmark'
run: |
gh release edit aggregated-benchmarks --target result-data --draft=false || gh release create --target result-data aggregated-benchmarks --draft=false
gh release upload --clobber aggregated-benchmarks *-results.json
env:
GITHUB_TOKEN: ${{ github.token }}