Skip to content

Commit 9170a06

Browse files
committed
.github/workflows/Test.yml: limit doc to push on master branch
1 parent 36fd911 commit 9170a06

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/Test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ name: Test
22

33
on:
44
push:
5-
branches:
6-
- master # Only trigger workflow on pushes to master
75
pull_request:
86
workflow_dispatch:
97

108
jobs:
119

1210
doc:
13-
if: github.ref == 'refs/heads/master'
11+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
1412
runs-on: ubuntu-latest
1513
name: '📓 Docs'
1614

0 commit comments

Comments
 (0)