-
Notifications
You must be signed in to change notification settings - Fork 208
39 lines (34 loc) · 1.01 KB
/
dump-ci-stats.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
name: Dump GH CI Stats
on:
workflow_run: # This allows the workflow to be reused
workflows:
[
'Integration Tests',
'Test Golang',
'golangci-lint',
'Build release Docker Images',
'Test all Packages',
'Test Documentation',
'Manage integration check',
'after-merge.yml',
]
types:
- completed
jobs:
dump_ci_stats:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install GCP Monitoring/Metrics Client
run: yarn add @google-cloud/monitoring --ignore-workspace-root-check
- name: Run Final Job and Send Logs to GCP
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GCP_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
run: |
node .github/actions/dump-ci-stats-to-gcp-metrics.cjs ${{ github.event.workflow_run.id }}