2022-12-05 21:32:10 +08:00
|
|
|
name: 📦 Size Limit
|
2022-07-27 11:59:11 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize]
|
|
|
|
|
|
|
|
# Cancel prev CI if new commit come
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
2022-12-05 21:32:10 +08:00
|
|
|
size:
|
2022-07-27 11:59:11 +08:00
|
|
|
permissions:
|
2022-12-05 21:32:10 +08:00
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
2022-07-27 11:59:11 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
CI_JOB_NUMBER: 1
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: andresz1/size-limit-action@v1
|
|
|
|
with:
|
2022-12-05 21:32:10 +08:00
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|