Skip to content

Commit

Permalink
Simplify to just name instead of artifactName
Browse files Browse the repository at this point in the history
  • Loading branch information
konradpabjan committed Aug 17, 2023
1 parent 22298b0 commit d830aca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/artifact-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down
4 changes: 2 additions & 2 deletions packages/artifact/src/internal/find/list-artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/artifact/src/internal/shared/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export interface Artifact {
/**
* The name of the artifact
*/
artifactName: string
name: string

/**
* The ID of the artifact
Expand Down

0 comments on commit d830aca

Please sign in to comment.