Skip to content

Commit 8577b0b

Browse files
committed
dev: coverage: change to pull request target
1 parent 0b70da1 commit 8577b0b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/coverage.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Coverage
22

33
on:
44
push:
5-
pull_request:
5+
pull_request_target:
6+
branches:
7+
- develop
68

79
env:
810
CARGO_TERM_COLOR: always
@@ -36,10 +38,18 @@ jobs:
3638
RUSTDOCFLAGS: "-Z profile -C codegen-units=1 -C inline-threshold=0 -C link-dead-code -C overflow-checks=off -C panic=abort -Z panic_abort_tests"
3739

3840
steps:
39-
- id: checkout
40-
name: Checkout Repository
41+
- id: checkout_push
42+
if: github.event_name == 'push'
43+
name: Checkout Repository (Push)
4144
uses: actions/checkout@v4
4245

46+
- id: checkout_pull_request
47+
if: github.event_name == 'pull_request'
48+
name: Checkout Repository (Pull Request)
49+
uses: actions/checkout@v4
50+
with:
51+
ref: "refs/pull/${{ github.event.pull_request.number }}/head"
52+
4353
- id: setup
4454
name: Setup Toolchain
4555
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)