Skip to content

Commit b684d7a

Browse files
authored
Run sauce tests only on merge
1 parent 3ca00a8 commit b684d7a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/remote-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: SauceLabs Browser Testing
22

33
on:
4-
push
4+
pull_request:
5+
branches:
6+
- master
7+
types: [closed]
58

69
jobs:
710
test:
811
runs-on: ubuntu-latest
9-
if: "contains(github.event.pull_request.labels.*.name, 'runTests')"
12+
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
1013

1114
steps:
1215
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)