mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Improving sorting of matrix keys
This commit is contained in:
Generated
+3
-4
@@ -125711,10 +125711,9 @@ function getArtifactSuffix(matrix) {
|
||||
let suffix = "";
|
||||
if (matrix) {
|
||||
try {
|
||||
for (const [, matrixVal] of Object.entries(
|
||||
JSON.parse(matrix)
|
||||
).sort())
|
||||
suffix += `-${matrixVal}`;
|
||||
const matrixObject = JSON.parse(matrix);
|
||||
for (const matrixKey of Object.keys(matrixObject).sort())
|
||||
suffix += `-${matrixObject[matrixKey]}`;
|
||||
} catch {
|
||||
core12.info(
|
||||
"Could not parse user-specified `matrix` input into JSON. The debug artifact will not be named with the user's `matrix` input."
|
||||
|
||||
Generated
+3
-4
@@ -130434,10 +130434,9 @@ function getArtifactSuffix(matrix) {
|
||||
let suffix = "";
|
||||
if (matrix) {
|
||||
try {
|
||||
for (const [, matrixVal] of Object.entries(
|
||||
JSON.parse(matrix)
|
||||
).sort())
|
||||
suffix += `-${matrixVal}`;
|
||||
const matrixObject = JSON.parse(matrix);
|
||||
for (const matrixKey of Object.keys(matrixObject).sort())
|
||||
suffix += `-${matrixObject[matrixKey]}`;
|
||||
} catch {
|
||||
core12.info(
|
||||
"Could not parse user-specified `matrix` input into JSON. The debug artifact will not be named with the user's `matrix` input."
|
||||
|
||||
Generated
+3
-4
@@ -124624,10 +124624,9 @@ function getArtifactSuffix(matrix) {
|
||||
let suffix = "";
|
||||
if (matrix) {
|
||||
try {
|
||||
for (const [, matrixVal] of Object.entries(
|
||||
JSON.parse(matrix)
|
||||
).sort())
|
||||
suffix += `-${matrixVal}`;
|
||||
const matrixObject = JSON.parse(matrix);
|
||||
for (const matrixKey of Object.keys(matrixObject).sort())
|
||||
suffix += `-${matrixObject[matrixKey]}`;
|
||||
} catch {
|
||||
core12.info(
|
||||
"Could not parse user-specified `matrix` input into JSON. The debug artifact will not be named with the user's `matrix` input."
|
||||
|
||||
Generated
+3
-4
@@ -124646,10 +124646,9 @@ function getArtifactSuffix(matrix) {
|
||||
let suffix = "";
|
||||
if (matrix) {
|
||||
try {
|
||||
for (const [, matrixVal] of Object.entries(
|
||||
JSON.parse(matrix)
|
||||
).sort())
|
||||
suffix += `-${matrixVal}`;
|
||||
const matrixObject = JSON.parse(matrix);
|
||||
for (const matrixKey of Object.keys(matrixObject).sort())
|
||||
suffix += `-${matrixObject[matrixKey]}`;
|
||||
} catch {
|
||||
core12.info(
|
||||
"Could not parse user-specified `matrix` input into JSON. The debug artifact will not be named with the user's `matrix` input."
|
||||
|
||||
Reference in New Issue
Block a user