Skip to content

Commit

Permalink
Add log file artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Jun 27, 2024
1 parent 0ec9b82 commit 27bb587
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 27bb587

Please sign in to comment.