Skip to content

Commit 96cb24d

Browse files
committed
chore(CI): fix core dump artifact name, only upload cores on failure
1 parent b944db4 commit 96cb24d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/test-and-publish.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,12 @@ jobs:
201201
ulimit -c unlimited
202202
fi
203203
poetry run bash ./peter-jr ./tests/js/
204-
- uses: actions/upload-artifact@v3
205-
if: ${{ matrix.os != 'windows-2019' }}
204+
- name: Upload core dumps as CI artifacts
205+
uses: actions/upload-artifact@v3
206+
if: ${{ matrix.os != 'windows-2019' && failure() }}
206207
# TODO (Caleb Aikens) figure out how to get Windows core dumps
207208
with:
208-
name: cores-${{ matrix.os }}-${ matrix.python_version }
209+
name: cores-${{ matrix.os }}-${{ matrix.python_version }}
209210
path: /cores
210211
# Enable tmate debugging of manually-triggered workflows if the input option was provided
211212
- name: SSH debug session

0 commit comments

Comments
 (0)