mirror of
https://github.com/actions/download-artifact.git
synced 2025-08-18 21:49:56 +08:00
This commit is contained in:
@@ -102,7 +102,7 @@ export async function run(): Promise<void> {
|
|||||||
|
|
||||||
// Parse the artifact IDs
|
// Parse the artifact IDs
|
||||||
artifactIds = artifactIdList.map(id => {
|
artifactIds = artifactIdList.map(id => {
|
||||||
const numericId = parseInt(id)
|
const numericId = parseInt(id, 10)
|
||||||
if (isNaN(numericId)) {
|
if (isNaN(numericId)) {
|
||||||
throw new Error(`Invalid artifact ID: '${id}'. Must be a number.`)
|
throw new Error(`Invalid artifact ID: '${id}'. Must be a number.`)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user