File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,19 @@ jobs:
2727 update-release :
2828 runs-on : ubuntu-latest
2929 steps :
30+ - name : Set start timestamp
31+ id : start
32+ run : printf 'timestamp=%(%s)T\n' >> "$GITHUB_OUTPUT"
3033 - uses : actions/checkout@v4
3134 with :
3235 ref : ' main'
3336 fetch-depth : 0
3437 token : ${{ secrets.CI_USER_PAT }}
38+ - name : Configure AWS Credentials
39+ uses : aws-actions/configure-aws-credentials@v4
40+ with :
41+ role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
42+ aws-region : us-west-2
3543 - name : Configure Git
3644 shell : bash
3745 run : |
@@ -107,3 +115,23 @@ jobs:
107115 echo "pushing changes to release branch";
108116 git push origin release;
109117 fi
118+ - name : Calculate duration
119+ id : end
120+ run : |
121+ printf -v now '%(%s)T'
122+ duration=$(( now - ${{ steps.start.outputs.timestamp }} ))
123+ printf 'duration=$duration\n' >> "$GITHUB_OUTPUT"
124+ - name : Emit metrics
125+ if : always()
126+ uses : awslabs/aws-kotlin-repo-tools/.github/actions/emit-metrics
127+ with :
128+ namespace : CI metrics
129+ dimensions : |
130+ Product=aws-sdk-kotlin
131+ Trigger=${{ github.event_name == 'schedule' && 'schedule' || 'manual' }}
132+ metrics : |
133+ ReleaseMergeAttempted:1:Count
134+ ReleaseMergeSucceeded:${{ job.status == 'success' && '1' || '0' }}:Count
135+ ReleaseMergeCancelled:${{ job.status == 'cancelled' && '1' || '0' }}:Count
136+ ReleaseMergeFailed:${{ job.status == 'failure' && '1' || '0' }}:Count
137+ ReleaseMergeDuration:${{ steps.end.outputs.duration }}:Seconds
You can’t perform that action at this time.
0 commit comments