Skip to content

Commit

Permalink
Merge pull request #873 from aws-observability/thpierce-patch-2
Browse files Browse the repository at this point in the history
Align failure metrics with other repos
  • Loading branch information
thpierce authored Aug 26, 2024
2 parents 19e0f4d + b65afb6 commit bd297e0
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 bd297e0

Please sign in to comment.