From 6f9587f63bb908f41bbc92bb35f3dfca0d01e4cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Deng=20=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Thu, 30 May 2024 10:51:55 +0800 Subject: [PATCH] ci: omit pr number (#11033) 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 | 10 ---------- .github/workflows/size-report.yml | 14 -------------- 2 files changed, 24 deletions(-) diff --git a/.github/workflows/size-data.yml b/.github/workflows/size-data.yml index be57d223550..6ed57014562 100644 --- a/.github/workflows/size-data.yml +++ b/.github/workflows/size-data.yml @@ -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 diff --git a/.github/workflows/size-report.yml b/.github/workflows/size-report.yml index 766462d6da9..f84a9398413 100644 --- a/.github/workflows/size-report.yml +++ b/.github/workflows/size-report.yml @@ -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 }}