Skip to content

Commit 398baa8

Browse files
committed
chore(CI): add dump_cores input to CI workflow dispatch
1 parent 216545b commit 398baa8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
1515
required: false
1616
default: false
17+
dump_cores:
18+
type: boolean
19+
description: 'Include core dumps in CI artifacts'
20+
required: false
21+
default: false
1722
pull_request:
1823

1924
env:
@@ -204,7 +209,7 @@ jobs:
204209
poetry run bash ./peter-jr ./tests/js/
205210
- name: Upload core dumps as CI artifacts
206211
uses: actions/upload-artifact@v3
207-
if: ${{ matrix.os != 'windows-2019' && failure() }}
212+
if: ${{ matrix.os != 'windows-2019' && github.event_name == 'workflow_dispatch' && inputs.dump_cores }}
208213
# TODO (Caleb Aikens) figure out how to get Windows core dumps
209214
with:
210215
name: cores-${{ matrix.os }}-${{ matrix.python_version }}

0 commit comments

Comments
 (0)