|
1 | 1 | name: Artifact Size Metrics |
2 | 2 | on: |
3 | | - pull_request_target: |
| 3 | + pull_request: |
4 | 4 | types: [ opened, synchronize, reopened, labeled, unlabeled ] |
5 | 5 | branches: |
6 | 6 | - main |
@@ -32,47 +32,45 @@ jobs: |
32 | 32 | role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} |
33 | 33 | aws-region: us-west-2 |
34 | 34 | - name: Configure Gradle |
35 | | - uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main |
| 35 | + uses: aws/aws-kotlin-repo-tools/.github/actions/configure-gradle@main |
36 | 36 | - name: Generate Artifact Size Metrics |
37 | 37 | run: ./gradlew artifactSizeMetrics |
38 | 38 | - name: Save Artifact Size Metrics |
39 | 39 | run: ./gradlew saveArtifactSizeMetrics -Prelease=${{ github.event.release.tag_name }} |
40 | 40 | - name: Put Artifact Size Metrics in CloudWatch |
41 | 41 | run: ./gradlew putArtifactSizeMetricsInCloudWatch -Prelease=${{ github.event.release.tag_name }} |
42 | 42 | size-check: |
43 | | - if: github.event_name == 'pull_request_target' |
44 | 43 | runs-on: ubuntu-latest |
45 | 44 | steps: |
46 | 45 | - name: Checkout Sources |
47 | 46 | uses: actions/checkout@v4 |
48 | 47 | with: |
49 | 48 | path: smithy-kotlin |
| 49 | + |
50 | 50 | - name: Setup build |
51 | 51 | uses: ./smithy-kotlin/.github/actions/setup-build |
52 | | - - name: Configure JDK |
53 | | - uses: actions/setup-java@v3 |
54 | | - with: |
55 | | - distribution: 'corretto' |
56 | | - java-version: 17 |
57 | | - cache: 'gradle' |
| 52 | + |
58 | 53 | - name: Configure AWS Credentials |
59 | 54 | uses: aws-actions/configure-aws-credentials@v4 |
60 | 55 | with: |
61 | 56 | role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} |
62 | 57 | aws-region: us-west-2 |
| 58 | + |
63 | 59 | - name: Configure Gradle |
64 | | - uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main |
| 60 | + uses: aws/aws-kotlin-repo-tools/.github/actions/configure-gradle@main |
65 | 61 | with: |
66 | 62 | working-directory: smithy-kotlin |
| 63 | + |
67 | 64 | - name: Generate Artifact Size Metrics |
68 | 65 | run: ./gradlew -Paws.kotlin.native=false artifactSizeMetrics |
69 | 66 | working-directory: smithy-kotlin |
| 67 | + |
70 | 68 | - name: Analyze Artifact Size Metrics |
71 | 69 | run: ./gradlew analyzeArtifactSizeMetrics |
72 | 70 | working-directory: smithy-kotlin |
73 | 71 |
|
74 | 72 | - name: Show Results |
75 | | - uses: awslabs/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/show-results@main |
| 73 | + uses: aws/aws-kotlin-repo-tools/.github/actions/artifact-size-metrics/show-results@main |
76 | 74 |
|
77 | 75 | - name: Evaluate |
78 | 76 | if: ${{ !contains(github.event.pull_request.labels.*.name, 'acknowledge-artifact-size-increase') }} |
|
0 commit comments