Skip to content

Commit 165fe6f

Browse files
committed
collect metric for codebuild-ci
1 parent 03b8600 commit 165fe6f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/actions/workflow-metrics/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ runs:
2727
"Name": "WorkflowName",
2828
"Value": "${{ github.workflow }}"
2929
},
30+
{
31+
"Name": "JobName",
32+
"Value": "${{ github.job }}"
33+
},
3034
{
3135
"Name": "Repository",
3236
"Value": "${{ github.repository }}"

.github/workflows/api-compat-verification.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,4 @@ jobs:
3939
echo "::error ::* Add the 'acknowledge-api-break' label to this PR (in rare cases warranting an API breakage)"
4040
exit 1
4141
- name: Upload metrics
42-
if: always()
4342
uses: ./.github/actions/workflow-metrics

.github/workflows/codebuild-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868
echo "cancelling in-progress build: id=$BUILD_ID"
6969
aws codebuild stop-build --id $BUILD_ID
7070
fi
71+
- name: Upload metrics
72+
uses: ./.github/actions/workflow-metrics
7173

7274
service-check-batch-and-artifact-size-metrics:
7375
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
@@ -155,6 +157,8 @@ jobs:
155157
echo If this is expected please add the 'acknowledge-artifact-size-increase' label to this pull request.
156158
exit 1
157159
}
160+
- name: Upload metrics
161+
uses: ./.github/actions/workflow-metrics
158162

159163
release-artifact-size-metrics:
160164
if: github.event_name == 'release'

0 commit comments

Comments
 (0)