Skip to content

Commit b65afb6

Browse files
authored
Align failure metrics with other repos
Emit failure metrics instead of success metrics for easier monitoring.
1 parent 6158a3b commit b65afb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish-status.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ jobs:
4646
if: ${{ inputs.success }}
4747
run: |
4848
aws cloudwatch put-metric-data --namespace '${{ inputs.namespace }}' \
49-
--metric-name Success \
49+
--metric-name Failure \
5050
--dimensions repository=${{ inputs.repository }},branch=${{ inputs.branch }},workflow=${{ inputs.workflow }} \
51-
--value 1.0
51+
--value 0.0
5252
- name: Publish status failure
5353
if: ${{ !inputs.success }}
5454
run: |
5555
aws cloudwatch put-metric-data --namespace '${{ inputs.namespace }}' \
56-
--metric-name Success \
56+
--metric-name Failure \
5757
--dimensions repository=${{ inputs.repository }},branch=${{ inputs.branch }},workflow=${{ inputs.workflow }} \
58-
--value 0.0
58+
--value 1.0

0 commit comments

Comments
 (0)