Skip to content

Commit

Permalink
fix: logs artifact name error
Browse files Browse the repository at this point in the history
  • Loading branch information
corang committed Feb 12, 2024
1 parent 552b047 commit dd4a754
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/actions/save-logs/action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: save-logs
description: "Save debug logs"

inputs:
artifact-suffix:
description: "Suffix to append to the artifact name"
required: false
default: ""

runs:
using: composite
steps:
Expand All @@ -12,7 +18,7 @@ runs:

- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: debug-log
name: debug-log${{ inputs.artifact-suffix }}
path: |
/tmp/zarf-*.log
/tmp/uds-*.log
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ jobs:
- name: Save logs
if: always()
uses: ./.github/actions/save-logs
with:
artifact-suffix: ${{ matrix.flavor }}-${{ github.sha }}

0 comments on commit dd4a754

Please sign in to comment.