Skip to content

Commit 375c147

Browse files
Include matrix information in debug artifact name
1 parent 0442e71 commit 375c147

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

.github/workflows/__debug-artifacts.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/debug-artifacts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ steps:
1313
id: analysis
1414
- uses: actions/download-artifact@v2
1515
with:
16-
name: debug-artifacts
16+
name: debug-artifacts-${{ matrix.os }}-${{ matrix.version }}
1717
- shell: bash
1818
run: |
1919
LANGUAGES="cpp csharp go java javascript python"

src/analyze-action.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,14 @@ async function run() {
237237
}
238238

239239
async function uploadDebugArtifacts(toUpload: string[], rootDir: string) {
240+
let suffix = "";
241+
const matrix = actionsUtil.getRequiredInput("matrix");
242+
if (matrix !== undefined && matrix !== "null") {
243+
for (const entry of Object.entries(JSON.parse(matrix)).sort())
244+
suffix += `-${entry[1]}`;
245+
}
240246
await artifact.create().uploadArtifact(
241-
DEBUG_ARTIFACT_NAME,
247+
`${DEBUG_ARTIFACT_NAME}${suffix}`,
242248
toUpload.map((file) => path.normalize(file)),
243249
path.normalize(rootDir)
244250
);

0 commit comments

Comments
 (0)