Skip to content

Commit

Permalink
ci: omit pr number (#11033)
Browse files Browse the repository at this point in the history
In the latest version of `maintain-one-comment`, pr number can be set automatically
actions-cool/maintain-one-comment#9
  • Loading branch information
sxzz authored May 30, 2024
1 parent 15ee43f commit 6f9587f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/size-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 0 additions & 14 deletions .github/workflows/size-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 -->
Expand Down

0 comments on commit 6f9587f

Please sign in to comment.