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