Skip to content

Commit cd61ef9

Browse files
committed
update CI/CD
1 parent 7805a68 commit cd61ef9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- main
66
pull_request:
7+
pull_request_target:
78
workflow_dispatch:
89

910
jobs:
@@ -18,11 +19,14 @@ jobs:
1819

1920
coverage:
2021
runs-on: ubuntu-latest
22+
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
2123
permissions:
2224
contents: read
2325
pull-requests: write
2426
steps:
2527
- uses: actions/checkout@v4
28+
with:
29+
ref: ${{ github.event.pull_request.head.sha }}
2630
- uses: actions/setup-go@v5
2731
with:
2832
go-version-file: 'go.mod'
@@ -36,7 +40,6 @@ jobs:
3640
path: coverage.txt
3741
- name: Generate coverage report
3842
uses: fgrosse/go-coverage-report@v1.2.0
39-
if: github.event_name == 'pull_request'
4043

4144
verify-codegen:
4245
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)