Skip to content

Commit 8d64575

Browse files
committed
gh/workflows: Upload pwru logs upon failure
To debug flakes. Signed-off-by: Martynas Pumputis <[email protected]>
1 parent c076a4c commit 8d64575

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/actions/pwru-test/action.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,10 @@ runs:
4444
wait \$PWRU_PID
4545
4646
grep -P '${{ inputs.expected-output-pattern }}' /tmp/pwru-${{ inputs.test-name }}.log
47+
48+
- name: Upload artifacts
49+
if: ${{ !success() }}
50+
uses: actions/upload-artifact@1746f4ab65b179e0ea60a494b83293b640dd5bba # v4.3.2
51+
with:
52+
name: logs-${{ inputs.test-name }}
53+
path: /tmp/pwru-*

0 commit comments

Comments
 (0)