1
0
Fork 0

Simplify to just name instead of artifactName

pull/1495/head
Konrad Pabjan 2023-08-17 14:03:25 -04:00
parent 22298b02f4
commit d830aca920
3 changed files with 6 additions and 6 deletions

View File

@ -122,13 +122,13 @@ jobs:
}
const artifactNames = artifacts.map(artifact => artifact.name)
if (!artifactName.contains('my-artifact-ubuntu-latest')){
if (!artifactNames.contains('my-artifact-ubuntu-latest')){
throw new Error('Expected artifact list to contain an artifact named my-artifact-ubuntu-latest but it did not find one')
}
if (!artifactName.contains('my-artifact-windows-latest')){
if (!artifactNames.contains('my-artifact-windows-latest')){
throw new Error('Expected artifact list to contain an artifact named my-artifact-windows-latest but it did not find one')
}
if (!artifactName.contains('my-artifact-macos-latest')){
if (!artifactNames.contains('my-artifact-macos-latest')){
throw new Error('Expected artifact list to contain an artifact named my-artifact-macos-latest but it did not find one')
}

View File

@ -72,7 +72,7 @@ export async function listArtifacts(
// Iterate over the first page
listArtifactResponse.artifacts.forEach(artifact => {
artifacts.push({
artifactName: artifact.name,
name: artifact.name,
artifactId: artifact.id,
url: artifact.url,
size: artifact.size_in_bytes
@ -99,7 +99,7 @@ export async function listArtifacts(
listArtifactResponse.artifacts.forEach(artifact => {
artifacts.push({
artifactName: artifact.name,
name: artifact.name,
artifactId: artifact.id,
url: artifact.url,
size: artifact.size_in_bytes

View File

@ -109,7 +109,7 @@ export interface Artifact {
/**
* The name of the artifact
*/
artifactName: string
name: string
/**
* The ID of the artifact