29
29
with :
30
30
access_token : ${{ github.token }}
31
31
32
+ - name : Dump GitHub context
33
+ env :
34
+ GITHUB_CONTEXT : ${{ toJson(github) }}
35
+ run : |
36
+ echo "$GITHUB_CONTEXT"
37
+
32
38
- name : Free Disk Space (Ubuntu)
33
39
uses : jlumbroso/free-disk-space@main
34
40
with :
@@ -115,7 +121,7 @@ jobs:
115
121
# https://github.com/marketplace/actions/github-pages-action
116
122
- name : Deploy docs
117
123
if : |
118
- !github.event.pull_request.head.repo.fork &&
124
+ github.event.pull_request && !github.event.pull_request.head.repo.fork &&
119
125
(github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/'))
120
126
121
127
with :
@@ -124,7 +130,7 @@ jobs:
124
130
125
131
- name : Publish pull-request docs
126
132
if : |
127
- ! github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action != 'closed'
133
+ github.event.pull_request && ! github.event.pull_request.head.repo.fork && github.event.action != 'closed'
128
134
129
135
with :
130
136
github_token : ${{ secrets.GITHUB_TOKEN }}
@@ -139,7 +145,7 @@ jobs:
139
145
140
146
- name : Comment with URL to published pull-request docs
141
147
if : |
142
- ! github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action != 'closed'
148
+ github.event.pull_request && ! github.event.pull_request.head.repo.fork && github.event.action != 'closed'
143
149
env :
144
150
PR_NUM : ${{ github.event.number }}
145
151
@@ -150,7 +156,7 @@ jobs:
150
156
151
157
clean :
152
158
if : |
153
- ! github.event.pull_request.head.repo.fork && github.event.pull_request && github.event.action == 'closed'
159
+ github.event.pull_request && ! github.event.pull_request.head.repo.fork && github.event.action == 'closed'
154
160
155
161
needs : build-and-deploy
156
162
0 commit comments