From 30b5c190bec34208f77d01a9908b5ffd077a6699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcholas=20Oliveira?= Date: Thu, 17 Oct 2024 13:51:38 -0300 Subject: [PATCH] chore: fix ci --- .../workflows/nextjs_bundle_analysis-app-router.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nextjs_bundle_analysis-app-router.yml b/.github/workflows/nextjs_bundle_analysis-app-router.yml index 7cb0228ad..cff82fb76 100644 --- a/.github/workflows/nextjs_bundle_analysis-app-router.yml +++ b/.github/workflows/nextjs_bundle_analysis-app-router.yml @@ -34,7 +34,7 @@ jobs: with: # if you use a custom build directory, replace all instances of `.next` in this file with your build directory # ex: if your app builds to `dist`, replace `.next` with `dist` - path: ./projects/wp-nextjs/.next/cache + path: ./projects/wp-nextjs-app/.next/cache # change this if you prefer a more strict cache key: ${{ runner.os }}-build-${{ env.cache-name }} @@ -51,7 +51,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: bundle - path: ./projects/wp-nextjs/.next/analyze/__bundle_analysis.json + path: ./projects/wp-nextjs-app/.next/analyze/__bundle_analysis.json - name: Download base branch bundle stats uses: dawidd6/action-download-artifact@v2 @@ -59,7 +59,7 @@ jobs: with: workflow: nextjs_bundle_analysis.yml branch: ${{ github.event.pull_request.base.ref }} - path: ./projects/wp-nextjs/.next/analyze/base + path: ./projects/wp-nextjs-app/.next/analyze/base # And here's the second place - this runs after we have both the current and # base branch bundle stats, and will compare them to determine what changed. @@ -76,13 +76,13 @@ jobs: # entry in your package.json file. - name: Compare with base branch bundle if: success() && github.event.number - run: ls -laR ./projects/wp-nextjs/.next/analyze/base && npx -p nextjs-bundle-analysis compare + run: ls -laR ./projects/wp-nextjs-app/.next/analyze/base && npx -p nextjs-bundle-analysis compare - name: Get comment body id: get-comment-body if: success() && github.event.number run: | - body=$(cat ./projects/wp-nextjs/.next/analyze/__bundle_analysis_comment.txt) + body=$(cat ./projects/wp-nextjs-app/.next/analyze/__bundle_analysis_comment.txt) body="${body//'%'/'%25'}" body="${body//$'\n'/'%0A'}" body="${body//$'\r'/'%0D'}"