diff --git a/.github/actions/save-logs/action.yaml b/.github/actions/save-logs/action.yaml index fbb3bfc..82e9a15 100644 --- a/.github/actions/save-logs/action.yaml +++ b/.github/actions/save-logs/action.yaml @@ -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: @@ -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 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 46e9c83..6963647 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -69,3 +69,5 @@ jobs: - name: Save logs if: always() uses: ./.github/actions/save-logs + with: + artifact-suffix: ${{ matrix.flavor }}-${{ github.sha }}