Skip to content

Commit 009d033

Browse files
committed
Run only in sagemath/sage repo
1 parent 1a54d8c commit 009d033

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/doc-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ jobs:
200200

201201
- name: Build live doc
202202
id: buildlivedoc
203-
if: always() && steps.copy.outcome == 'success' && github.ref == 'refs/heads/develop'
203+
if: (success() || failure()) && steps.copy.outcome == 'success' && github.repository == 'sagemath/sage' && github.ref == 'refs/heads/develop'
204204
run: |
205205
set -ex
206206
export SAGE_USE_CDNS=yes
@@ -215,7 +215,7 @@ jobs:
215215

216216
- name: Copy live doc
217217
id: copylivedoc
218-
if: always() && steps.buildlivedoc.outcome == 'success'
218+
if: (success() || failure()) && steps.buildlivedoc.outcome == 'success'
219219
run: |
220220
set -ex
221221
mkdir -p ./livedoc
@@ -224,7 +224,7 @@ jobs:
224224
zip -r livedoc.zip livedoc
225225
226226
- name: Upload live doc
227-
if: always() && steps.copylivedoc.outcome == 'success'
227+
if: (success() || failure()) && steps.copylivedoc.outcome == 'success'
228228
uses: actions/upload-artifact@v3
229229
with:
230230
name: livedoc

0 commit comments

Comments
 (0)