Skip to content

Commit 03b8600

Browse files
committed
use inplace workflow name
1 parent 5f07e73 commit 03b8600

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ name: Workflow Metrics
22
description: >
33
Track and upload workflow execution time to CloudWatch
44
5-
inputs:
6-
workflow-name:
7-
description: >
8-
Name of the workflow
9-
required: true
105
runs:
116
using: composite
127
steps:
@@ -30,7 +25,7 @@ runs:
3025
"Dimensions": [
3126
{
3227
"Name": "WorkflowName",
33-
"Value": "${{ inputs.workflow-name }}"
28+
"Value": "${{ github.workflow }}"
3429
},
3530
{
3631
"Name": "Repository",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,4 @@ jobs:
4040
exit 1
4141
- name: Upload metrics
4242
if: always()
43-
uses: ./.github/actions/workflow-metrics
44-
with:
45-
workflow-name: 'api-compat-verification'
43+
uses: ./.github/actions/workflow-metrics

0 commit comments

Comments
 (0)