Skip to content

Commit 053fe7a

Browse files
committed
fix: use working dir for every run
1 parent 6c00a70 commit 053fe7a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/codebuild-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ jobs:
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

Comments
 (0)