From b65afb6a46372a1935848a6ef49bb4937c24c55d Mon Sep 17 00:00:00 2001 From: Thomas Pierce Date: Mon, 26 Aug 2024 14:24:05 -0700 Subject: [PATCH] Align failure metrics with other repos Emit failure metrics instead of success metrics for easier monitoring. --- .github/workflows/publish-status.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-status.yml b/.github/workflows/publish-status.yml index f76849cc9..1efeb9c04 100644 --- a/.github/workflows/publish-status.yml +++ b/.github/workflows/publish-status.yml @@ -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