Skip to content

Commit 6b7d118

Browse files
authored
update workflow (#75)
1 parent 215a6a6 commit 6b7d118

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
go-version: [^1]
1616
os: [ubuntu-latest, macos-latest, windows-latest]
1717
runs-on: ${{ matrix.os }}
18+
if: ${{ github.event_name != 'pull_request_target' || (contains(github.event.pull_request.labels.*.name, 'ok to test') && github.event.pull_request.state == 'open') }}
1819
env:
1920
GO111MODULE: "on"
2021
UPYUN_BUCKET: ${{ secrets.UPYUN_BUCKET }}
@@ -23,6 +24,12 @@ jobs:
2324
UPYUN_SECRET: ${{ secrets.UPYUN_SECRET }}
2425
UPYUN_USERNAME: ${{ secrets.UPYUN_USERNAME }}
2526
steps:
27+
- name: Remove 'ok to test' Label
28+
if: ${{ github.event_name == 'pull_request_target' }}
29+
uses: actions-ecosystem/[email protected]
30+
with:
31+
labels: 'ok to test'
32+
2633
- name: Install Go
2734
uses: actions/setup-go@v2
2835
with:

0 commit comments

Comments
 (0)