chore: allow run compressed size from outside PR

This commit is contained in:
偏右 2020-12-01 12:15:28 +08:00 committed by GitHub
parent 2cc6b0ca05
commit 511c8510fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
name: 📦 Compressed Size name: 📦 Compressed Size
on: [pull_request] on: [pull_request_target]
jobs: jobs:
build: build:
@ -11,6 +11,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- uses: preactjs/compressed-size-action@v2 - uses: preactjs/compressed-size-action@v2
with: with:
repo-token: "${{ secrets.GITHUB_TOKEN }}" repo-token: "${{ secrets.GITHUB_TOKEN }}"