File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -109,3 +109,24 @@ jobs:
109
109
with :
110
110
staging-wheel-name : ${{ needs.build.outputs.staging_wheel_file }}
111
111
adot-image-name : ${{ needs.build.outputs.staging_registry }}/aws-observability/adot-autoinstrumentation-python-staging:${{ needs.build.outputs.python_image_tag }}
112
+
113
+ publish-main-build-status :
114
+ name : " Publish Main Build Status"
115
+ needs : [ build, application-signals-e2e-test ]
116
+ runs-on : ubuntu-latest
117
+ if : always()
118
+ steps :
119
+ - name : Configure AWS Credentials for emitting metrics
120
+ uses : aws-actions/configure-aws-credentials@v4
121
+ with :
122
+ role-to-assume : ${{ secrets.MONITORING_ROLE_ARN }}
123
+ aws-region : ${{ env.AWS_DEFAULT_REGION }}
124
+
125
+ - name : Publish main build status
126
+ run : |
127
+ success="${{ needs.build.result == 'success' && needs.application-signals-e2e-test.result == 'success' }}"
128
+ value="${success}" == "true" && "0.0" || "1.0"
129
+ aws cloudwatch put-metric-data --namespace 'ADOT/GitHubActions' \
130
+ --metric-name Failure \
131
+ --dimensions repository=${{ github.repository }},branch=${{ github.ref_name }},workflow=main_build \
132
+ --value $value
You can’t perform that action at this time.
0 commit comments