From c060973dd22323c36e28eb5a0b6ec3741ab9b905 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Mon, 31 Jul 2023 22:44:38 +0200 Subject: [PATCH] feat: add cancel comment and remove continuous run --- .github/workflows/unlighthouse-report.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/unlighthouse-report.yaml b/.github/workflows/unlighthouse-report.yaml index b073789..7810f4c 100644 --- a/.github/workflows/unlighthouse-report.yaml +++ b/.github/workflows/unlighthouse-report.yaml @@ -43,9 +43,6 @@ jobs: - name: Build production run: pnpm run build - - - name: Preview production - run: pnpm run preview --port ${{ env.PORT }} - name: Start Preview and Get Preview URL run: | @@ -126,3 +123,11 @@ jobs: ⚡️ Lighthouse report failed See deployment for any errors + + - name: Update comment on cancel + uses: marocchino/sticky-pull-request-comment@v2.7.0 + if: ${{ cancelled() }} + with: + header: ${{ env.COMMENT_ID }} + message: | + ⚡️ Lighthouse report cancelled