mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-18 10:59:10 +08:00
fix(ci): build product check (#6587)
This commit is contained in:
parent
bf8eec1314
commit
7cdee1bec5
19
.github/workflows/build-product.yml
vendored
19
.github/workflows/build-product.yml
vendored
@ -1,6 +1,9 @@
|
||||
name: Build Product 👮♂️
|
||||
|
||||
on: pull_request
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
check:
|
||||
@ -58,23 +61,9 @@ jobs:
|
||||
with:
|
||||
path: ./tmp/diff.md
|
||||
|
||||
- uses: actions-cool/check-user-permission@v2
|
||||
id: isTeamMember
|
||||
with:
|
||||
require: 'write'
|
||||
username: ${{ github.event.pull_request.user.login }}
|
||||
|
||||
- name: Set comment
|
||||
uses: actions-cool/maintain-one-comment@v2.0.2
|
||||
if: steps.isTeamMember.outputs.require-result == 'true' && steps.diff.outputs.content != ''
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
body: ${{ steps.diff.outputs.content }}
|
||||
body-include: '<sub>Generated with'
|
||||
|
||||
- name: Echo comment
|
||||
if: steps.isTeamMember.outputs.require-result == 'false'
|
||||
run: |
|
||||
echo 'Error: compressed-size-action was unable to comment on your PR.'
|
||||
echo 'This can happen for PR's originating from a fork without write permissions.'
|
||||
echo ${{ steps.diff.outputs.content }}
|
||||
|
2
.github/workflows/size-report.yml
vendored
2
.github/workflows/size-report.yml
vendored
@ -2,6 +2,8 @@ name: 📦 Package Size Report
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
types: [opened, synchronize]
|
||||
|
||||
jobs:
|
||||
|
Loading…
Reference in New Issue
Block a user