diff --git a/.github/workflows/test_workflow.yml b/.github/workflows/test_workflow.yml index 0a2b02bbb5..e5d7e9dc2a 100644 --- a/.github/workflows/test_workflow.yml +++ b/.github/workflows/test_workflow.yml @@ -117,6 +117,18 @@ jobs: echo "Removing duplicate directory for $testDir" rm -rf $testDir done + + - name: Upload test logs + if : ${{ failure() }} + uses : actions/upload-artifact@v4 + with: + # as per usual with ci/cd stuff I am shocked but not surprised when the advertised + # *documented* functionality doesn't work as expected. Wow, bravo + # can't use ${{ env. }} as somehow this combination of matrix->reusable workflow->call step is too complex + # and expands to nothing + name: ${{ github.event_name == 'push' && 'master' || github.event.number }}-${{ inputs.id }}_logfiles + path: ${{ inputs.archive }}/${{ github.event_name == 'push' && 'master' || github.event.number }}/${{ inputs.id }}/ + - name : Remove '${{ inputs.label }}' label if : ${{ !cancelled() && github.event.label.name == inputs.label }}