@@ -16,7 +16,7 @@ defaults:
16
16
jobs :
17
17
print :
18
18
name : Print event
19
- runs-on : ubuntu-latest
19
+ runs-on : ubuntu-20.04
20
20
steps :
21
21
- name : Dump GitHub context
22
22
env :
@@ -125,7 +125,7 @@ jobs:
125
125
# https://github.com/marketplace/actions/github-pages-action
126
126
- name : Deploy docs
127
127
if : |
128
- !github.event.pull_request.head.repo.fork &&
128
+ github.event.pull_request && !github.event.pull_request.head.repo.fork &&
129
129
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
130
130
131
131
with :
@@ -134,7 +134,7 @@ jobs:
134
134
135
135
- name : Publish pull-request docs
136
136
if : |
137
- ! github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action != 'closed'
137
+ github.event.pull_request && ! github.event.pull_request.head.repo.fork && github.event.action != 'closed'
138
138
139
139
with :
140
140
github_token : ${{ secrets.GITHUB_TOKEN }}
@@ -149,7 +149,7 @@ jobs:
149
149
150
150
- name : Comment with URL to published pull-request docs
151
151
if : |
152
- ! github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action != 'closed'
152
+ github.event.pull_request && ! github.event.pull_request.head.repo.fork && github.event.action != 'closed'
153
153
env :
154
154
PR_NUM : ${{ github.event.number }}
155
155
@@ -160,7 +160,7 @@ jobs:
160
160
161
161
clean :
162
162
if : |
163
- ! github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action == 'closed'
163
+ github.event.pull_request && ! github.event.pull_request.head.repo.fork && github.event.action == 'closed'
164
164
165
165
needs : build-and-deploy
166
166
0 commit comments