Skip to content

Commit

Permalink
add pull_request_target
Browse files Browse the repository at this point in the history
  • Loading branch information
huangnauh committed Jan 13, 2021
1 parent f56aa92 commit fbab010
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test
on:
pull_request:
push:
pull_request_target:
types: [labeled]

jobs:
build:
Expand All @@ -10,6 +10,7 @@ jobs:
go-version: [^1]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
if: contains(github.event.pull_request.labels.*.name, 'ok to test')
env:
GO111MODULE: "on"
UPYUN_BUCKET1: ${{ secrets.UPYUN_BUCKET1 }}
Expand All @@ -24,6 +25,10 @@ jobs:

- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
Expand Down

0 comments on commit fbab010

Please sign in to comment.