Skip to content

Commit 3f1030d

Browse files
committed
fix metric value
1 parent 2c9827f commit 3f1030d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/main-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ jobs:
124124

125125
- name: Publish main build status
126126
run: |
127-
success="${{ needs.build.result == 'success' && needs.application-signals-e2e-test.result == 'success' }}"
128-
value="${success}" == "true" && "0.0" || "1.0"
127+
value="${{ needs.build.result == 'success' && needs.application-signals-e2e-test.result == 'success' && '0.0' || '1.0'}}"
129128
aws cloudwatch put-metric-data --namespace 'ADOT/GitHubActions' \
130129
--metric-name Failure \
131130
--dimensions repository=${{ github.repository }},branch=${{ github.ref_name }},workflow=main_build \

0 commit comments

Comments
 (0)