mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 02:49:05 +08:00
use string interpolation
This commit is contained in:
parent
88f749f686
commit
b2da9aa12c
@ -53,7 +53,7 @@ export async function getArtifact(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (getArtifactResp.status !== 200) {
|
if (getArtifactResp.status !== 200) {
|
||||||
core.warning('non-200 response from GitHub API: ${getArtifactResp.status}')
|
core.warning(`non-200 response from GitHub API: ${getArtifactResp.status}`)
|
||||||
return {
|
return {
|
||||||
success: false
|
success: false
|
||||||
}
|
}
|
||||||
@ -67,7 +67,9 @@ export async function getArtifact(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (getArtifactResp.data.artifacts.length > 1) {
|
if (getArtifactResp.data.artifacts.length > 1) {
|
||||||
core.warning('more than one artifact found, returning first')
|
core.warning(
|
||||||
|
'more than one artifact found for a single name, returning first'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user