Skip to content

Commit

Permalink
gh/workflows: Upload pwru logs upon failure
Browse files Browse the repository at this point in the history
To debug flakes.

Signed-off-by: Martynas Pumputis <m@lambda.lt>
  • Loading branch information
brb committed Apr 29, 2024
1 parent c076a4c commit 84be50d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/actions/pwru-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ runs:
wait \$PWRU_PID
grep -P '${{ inputs.expected-output-pattern }}' /tmp/pwru-${{ inputs.test-name }}.log
- name: Upload artifacts
if: ${{ !success() }}
uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
with:
name: logs-${{ inputs.test-name }}
path: /tmp/pwru-*

0 comments on commit 84be50d

Please sign in to comment.