From 1d355c56eab88af1833c027bde0469ad1505173a Mon Sep 17 00:00:00 2001 From: Zack Tanner Date: Mon, 23 Oct 2023 20:49:22 -0700 Subject: [PATCH] add separate skip flag --- .github/workflows/build_reusable.yml | 6 +++++- .github/workflows/pull_request_stats.yml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_reusable.yml b/.github/workflows/build_reusable.yml index 4de59743ce670..87ad391ddb36d 100644 --- a/.github/workflows/build_reusable.yml +++ b/.github/workflows/build_reusable.yml @@ -21,6 +21,10 @@ on: required: false description: 'whether to skip building native modules' type: string + uploadAnalyzerArtifacts: + required: false + description: 'whether to upload analyzer artifacts' + type: string skipForDocsOnly: required: false description: 'skip for docs only changes' @@ -188,7 +192,7 @@ jobs: - name: Upload bundle analyzer artifacts uses: actions/upload-artifact@v3 - if: ${{ inputs.skipInstallBuild != 'yes' && inputs.skipNativeBuild != 'yes' }} + if: ${{ inputs.uploadAnalyzerArtifacts == 'yes' }} with: name: webpack bundle analysis stats path: packages/next/dist/compiled/next-server/report.*.html diff --git a/.github/workflows/pull_request_stats.yml b/.github/workflows/pull_request_stats.yml index c88e5a76ad256..f3cc73e5ae5ce 100644 --- a/.github/workflows/pull_request_stats.yml +++ b/.github/workflows/pull_request_stats.yml @@ -26,6 +26,7 @@ jobs: secrets: inherit with: uploadSwcArtifact: 'yes' + uploadAnalyzerArtifacts: 'yes' stats: name: PR Stats