dingtalk event pr 2 prt
@@ -5,6 +5,8 @@ on:
branches: [ master, develop ]
pull_request:
branches: "*"
+ pull_request_target:
+ branches: "*"
jobs:
@@ -68,12 +70,6 @@ jobs:
- name: Go Test
run: GO111MODULE=on && go mod vendor && go test ./... -bench . -race -v -coverprofile=coverage.txt
-# - name: Test
-# run: |
-# chmod u+x before_ut.sh && ./before_ut.sh
-# go mod vendor && go test ./... -coverprofile=coverage.txt -covermode=atomic
-# chmod +x integrate_test.sh && ./integrate_test.sh
-
- name: Coverage
run: bash <(curl -s https://codecov.io/bash)
@@ -107,7 +103,7 @@ jobs:
uses: zcong1993/actions-ding@v3.0.1
if: |
always() &&
- github.event_name == 'pull_request' &&
+ github.event_name == 'pull_request_target' &&
github.repository == 'dubbogo/dubbo-go-proxy'
with:
dingToken: ${{ env.DING_TOKEN }}
