9191 uses : ./aws-sdk-kotlin/.github/actions/custom-gradle-distribution-url
9292 - name : Run Service Check Batch and Calculate Artifact Size Metrics
9393 id : svc-check-batch
94+ working-directory : ./aws-sdk-kotlin
9495 run : |
9596 REPOSITORY=$(echo ${{ github.repository }} | cut -d '/' -f 2)
9697 PULL_REQUEST=""
@@ -119,12 +120,14 @@ jobs:
119120 if : ${{ cancelled() }}
120121 env :
121122 BUILD_ID : ${{ steps.svc-check-batch.outputs.aws-build-id }}
123+ working-directory : ./aws-sdk-kotlin
122124 run : |
123125 if [ ! -z "$BUILD_ID" ]; then
124126 echo "cancelling in-progress batch build: id=$BUILD_ID"
125127 aws codebuild stop-build --id $BUILD_ID
126128 fi
127129 - name : Collect Artifact Size Metrics
130+ working-directory : ./aws-sdk-kotlin
128131 run : |
129132 PULL_REQUEST=""
130133 INTERNAL=${{ github.event.number }}
@@ -143,6 +146,7 @@ jobs:
143146
144147 ./gradlew collectDelegatedArtifactSizeMetrics -PpullRequest=$PULL_REQUEST
145148 - name : Analyze Artifact Size Metrics
149+ working-directory : ./aws-sdk-kotlin
146150 run : ./gradlew analyzeArtifactSizeMetrics
147151 - name : Show Results
148152 uses : actions/github-script@v7
@@ -197,6 +201,7 @@ jobs:
197201
198202 - name : Evaluate Result
199203 if : ${{ !contains(github.event.pull_request.labels.*.name, 'acknowledge-artifact-size-increase') }}
204+ working-directory : ./aws-sdk-kotlin
200205 run : |
201206 cd build/reports/metrics
202207 cat has-significant-change.txt | grep false || {
@@ -222,6 +227,7 @@ jobs:
222227 uses : ./aws-sdk-kotlin/.github/actions/custom-gradle-distribution-url
223228 - name : Calculate Artifact Size Metrics
224229 id : svc-check-batch
230+ working-directory : ./aws-sdk-kotlin
225231 run : |
226232 REPOSITORY=$(echo ${{ github.repository }} | cut -d '/' -f 2)
227233
@@ -234,14 +240,18 @@ jobs:
234240 if : ${{ cancelled() }}
235241 env :
236242 BUILD_ID : ${{ steps.svc-check-batch.outputs.aws-build-id }}
243+ working-directory : ./aws-sdk-kotlin
237244 run : |
238245 if [ ! -z "$BUILD_ID" ]; then
239246 echo "cancelling in-progress batch build: id=$BUILD_ID"
240247 aws codebuild stop-build --id $BUILD_ID
241248 fi
242249 - name : Collect Artifact Size Metrics
250+ working-directory : ./aws-sdk-kotlin
243251 run : ./gradlew collectDelegatedArtifactSizeMetrics -Prelease=${{ github.event.release.tag_name }}
244252 - name : Save Artifact Size Metrics
253+ working-directory : ./aws-sdk-kotlin
245254 run : ./gradlew saveArtifactSizeMetrics -Prelease=${{ github.event.release.tag_name }}
246255 - name : Put Artifact Size Metrics in CloudWatch
256+ working-directory : ./aws-sdk-kotlin
247257 run : ./gradlew putArtifactSizeMetricsInCloudWatch -Prelease=${{ github.event.release.tag_name }}
0 commit comments