Skip to content

Commit 599a949

Browse files
ci: fix conditions for pages push jobs
1 parent 2ef7e50 commit 599a949

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/doc_update.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
retention-days: 4
6262
include-hidden-files: false
6363

64-
6564
build_website:
6665
name: Build website
6766
# Ordering dependency - this must run after building libjsonnet.wasm.
@@ -186,7 +185,7 @@ jobs:
186185
push_pages_branch:
187186
name: Update gh-pages branch
188187
needs: build_website
189-
if: ${{ github.repository == 'google/jsonnet' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && needs.build_website.outputs.diff_status == 'changed' }}
188+
if: always() && github.repository == 'google/jsonnet' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && needs.build_website.result == 'success' && needs.build_website.outputs.diff_status == 'changed'
190189
permissions:
191190
contents: write
192191
environment:
@@ -235,7 +234,7 @@ jobs:
235234
publish_pages:
236235
name: Direct publish pages
237236
needs: build_website
238-
if: ${{ false && github.repository == 'google/jsonnet' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && needs.build_website.outputs.diff_status == 'changed' }}
237+
if: false && github.repository == 'google/jsonnet' && contains(fromJSON('["push", "workflow_dispatch"]'), github.event_name) && needs.build_website.result == 'success' && needs.build_website.outputs.diff_status == 'changed'
239238
permissions:
240239
pages: write
241240
id-token: write

0 commit comments

Comments
 (0)