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