diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index a8e6223d40..2e70231698 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -276,3 +276,19 @@ jobs: ./stop_instance.sh $instance_id instance_id=${{ needs.create-runners.outputs.aarch64_instance_id }} ./stop_instance.sh $instance_id + + publish-success-metric: + if: always() + runs-on: [ self-hosted, scheduler ] + needs: [ stop-runners ] + steps: + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v2 + with: + aws-region: us-west-2 + - name: Publish Job Success Metric + run: | + aws cloudwatch put-metric-data --namespace GithubCI \ + --metric-name DJLServing-IntegrationTests-siddhave-test \ + --value 1 \ + --unit Count