File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -155,4 +155,24 @@ jobs:
155
155
secrets : inherit
156
156
permissions :
157
157
id-token : write
158
- contents : read
158
+ contents : read
159
+
160
+ publish-main-build-status :
161
+ name : " Publish Main Build Status"
162
+ needs : [ build, application-signals-e2e-test ]
163
+ runs-on : ubuntu-latest
164
+ if : always()
165
+ steps :
166
+ - name : Configure AWS Credentials for emitting metrics
167
+ uses : aws-actions/configure-aws-credentials@v4
168
+ with :
169
+ role-to-assume : ${{ secrets.MONITORING_ROLE_ARN }}
170
+ aws-region : us-east-1
171
+
172
+ - name : Publish main build status
173
+ run : |
174
+ value="${{ needs.build.result == 'success' && needs.application-signals-e2e-test.result == 'success' && '0.0' || '1.0'}}"
175
+ aws cloudwatch put-metric-data --namespace 'ADOT/GitHubActions' \
176
+ --metric-name Failure \
177
+ --dimensions repository=${{ github.repository }},branch=${{ github.ref_name }},workflow=main_build \
178
+ --value $value
You can’t perform that action at this time.
0 commit comments