Skip to content

Commit 793cf5e

Browse files
authored
Use explicit comparison in if condition of github action (#1821)
1 parent e9543f7 commit 793cf5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ jobs:
155155
# https://github.com/marketplace/actions/github-pages-action
156156
# The step is only used to build docs while pushing a PR to "master"
157157
- name: Deploy docs
158-
if: env.GH_EVENT_PUSH_UPSTREAM
158+
if: env.GH_EVENT_PUSH_UPSTREAM == 'true'
159159
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
160160
with:
161161
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -168,7 +168,7 @@ jobs:
168168

169169
# The step is only used to build docs while pushing to PR branch
170170
- name: Publish pull-request docs
171-
if: env.GH_EVENT_OPEN_PR_UPSTREAM
171+
if: env.GH_EVENT_OPEN_PR_UPSTREAM == 'true'
172172
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
173173
with:
174174
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -183,7 +183,7 @@ jobs:
183183

184184
# The step is only used to build docs while pushing to PR branch
185185
- name: Comment with URL to published pull-request docs
186-
if: env.GH_EVENT_OPEN_PR_UPSTREAM
186+
if: env.GH_EVENT_OPEN_PR_UPSTREAM == 'true'
187187
env:
188188
PR_NUM: ${{ github.event.number }}
189189
uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2

0 commit comments

Comments
 (0)