Skip to content

Commit d8d6bf4

Browse files
committed
tests(docs.yml): Update docs should only happens in master branch
1 parent d9c13d5 commit d8d6bf4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
paths:
99
- '**.yml'
1010
- docs/**
11+
pull_request:
12+
branches:
13+
- master
1114
workflow_dispatch:
1215

1316
concurrency:
@@ -34,7 +37,7 @@ jobs:
3437
npm run build
3538
3639
- name: Check out GitHub page repo
37-
uses: actions/checkout@v2
40+
uses: actions/checkout@v3
3841
with:
3942
repository: emacs-eask/emacs-eask.github.io
4043
path: emacs-eask.github.io
@@ -46,6 +49,7 @@ jobs:
4649

4750
# TODO: Generate better commit message
4851
- name: Publish doc artifacts
52+
if: github.ref == 'refs/heads/master'
4953
run: |
5054
git config user.name github-actions
5155
git config user.email github-actions@github.com

0 commit comments

Comments
 (0)