Skip to content

Commit

Permalink
testing cw metric publish from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
siddvenk committed Jan 25, 2024
1 parent 9081600 commit de686a3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit de686a3

Please sign in to comment.