Skip to content

Commit

Permalink
Align failure metrics with other repos
Browse files Browse the repository at this point in the history
Emit failure metrics instead of success metrics for easier monitoring.
  • Loading branch information
thpierce authored Aug 26, 2024
1 parent 6158a3b commit b65afb6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:
if: ${{ inputs.success }}
run: |
aws cloudwatch put-metric-data --namespace '${{ inputs.namespace }}' \
--metric-name Success \
--metric-name Failure \
--dimensions repository=${{ inputs.repository }},branch=${{ inputs.branch }},workflow=${{ inputs.workflow }} \
--value 1.0
--value 0.0
- name: Publish status failure
if: ${{ !inputs.success }}
run: |
aws cloudwatch put-metric-data --namespace '${{ inputs.namespace }}' \
--metric-name Success \
--metric-name Failure \
--dimensions repository=${{ inputs.repository }},branch=${{ inputs.branch }},workflow=${{ inputs.workflow }} \
--value 0.0
--value 1.0

0 comments on commit b65afb6

Please sign in to comment.