From 7e0015de26202a57d4d5ee608efbbcdd24197d27 Mon Sep 17 00:00:00 2001 From: claustra01 Date: Sat, 10 Aug 2024 12:58:45 +0900 Subject: [PATCH] test --- .github/workflows/pr-visualizer.yml | 61 ------------------- .../{pr-lighthouse.yml => pull-request.yml} | 0 2 files changed, 61 deletions(-) delete mode 100644 .github/workflows/pr-visualizer.yml rename .github/workflows/{pr-lighthouse.yml => pull-request.yml} (100%) diff --git a/.github/workflows/pr-visualizer.yml b/.github/workflows/pr-visualizer.yml deleted file mode 100644 index c6a83ef..0000000 --- a/.github/workflows/pr-visualizer.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: pr-visualizer - -on: - pull_request: - -permissions: - pull-requests: write - contents: read - pages: write - id-token: write - -jobs: - visualizer: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install and Build - run: | - npm install - npm run build - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./dist/visualizer/ - - - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v4 - id: deployment - with: - branch: ${{ github.head_ref }} - - - name: Find existing comment - uses: peter-evans/find-comment@v2 - id: fc - with: - issue-number: ${{ github.event.number }} - body-includes: '# Visualizer Report' - - - name: Create comment - uses: peter-evans/create-or-update-comment@v2 - if: success() && github.event.number && steps.fc.outputs.comment-id == '0' - with: - issue-number: ${{ github.event.number }} - body: | - # Visualizer Report - You can view the results [here](${{ steps.deployment.outputs.page_url }}). - - - name: Update comment - uses: peter-evans/create-or-update-comment@v2 - if: success() && github.event.number && steps.fc.outputs.comment-id != '0' - with: - issue-number: ${{ github.event.number }} - comment-id: ${{ steps.fc.outputs.comment-id }} - body: | - # Visualizer Report - You can view the results [here](${{ steps.deployment.outputs.page_url }}). - edit-mode: replace diff --git a/.github/workflows/pr-lighthouse.yml b/.github/workflows/pull-request.yml similarity index 100% rename from .github/workflows/pr-lighthouse.yml rename to .github/workflows/pull-request.yml