]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
ci: omit pr number (#11033)
authorKevin Deng 三咲智子 <sxzz@sxzz.moe>
Thu, 30 May 2024 02:51:55 +0000 (10:51 +0800)
committerGitHub <noreply@github.com>
Thu, 30 May 2024 02:51:55 +0000 (10:51 +0800)
In the latest version of `maintain-one-comment`, pr number can be set automatically
https://github.com/actions-cool/maintain-one-comment/pull/9

.github/workflows/size-data.yml
.github/workflows/size-report.yml

index be57d22355095f07d688a5b8c48a3dc480cbf31e..6ed570145625f1f757de97da0e4473dcce43b24c 100644 (file)
@@ -41,13 +41,3 @@ jobs:
         with:
           name: size-data
           path: temp/size
-
-      - name: Save PR number
-        if: ${{github.event_name == 'pull_request'}}
-        run: echo ${{ github.event.number }} > ./pr.txt
-
-      - uses: actions/upload-artifact@v4
-        if: ${{github.event_name == 'pull_request'}}
-        with:
-          name: pr-number
-          path: pr.txt
index 766462d6da9446be469cfa45a8fbd86b17f5a5de..f84a9398413c050ec6d41801a186ac6f92fa9a4d 100644 (file)
@@ -35,19 +35,6 @@ jobs:
       - name: Install dependencies
         run: pnpm install
 
-      - name: Download PR number
-        uses: dawidd6/action-download-artifact@v3
-        with:
-          name: pr-number
-          run_id: ${{ github.event.workflow_run.id }}
-          path: /tmp/pr-number
-
-      - name: Read PR Number
-        id: pr-number
-        uses: juliangruber/read-file-action@v1
-        with:
-          path: /tmp/pr-number/pr.txt
-
       - name: Download Size Data
         uses: dawidd6/action-download-artifact@v3
         with:
@@ -78,7 +65,6 @@ jobs:
         uses: actions-cool/maintain-one-comment@v3
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
-          number: ${{ steps.pr-number.outputs.content }}
           body: |
             ${{ steps.size-report.outputs.content }}
             <!-- VUE_CORE_SIZE -->