Loading dist/index.js +118877 −8332 File changed.Preview size limit exceeded, changes collapsed. Show changes package.json +1 −1 Changes for package.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", "release": "ncc build src/upload-artifact.ts && git add -f dist/", "release": "ncc build src/upload-artifact.ts && git add -f dist/index.js", "check-all": "concurrently \"npm:format-check\" \"npm:lint\" \"npm:test\" \"npm:build\"", "format": "prettier --write **/*.ts", "format-check": "prettier --check **/*.ts", Loading src/upload-artifact.ts +6 −8 Changes for src/upload-artifact.ts: 6 added lines, 8 removed lines. Original line number Diff line number Diff line import * as core from '@actions/core' import {create, UploadOptions} from '@actions/artifact' import * as core from '../node_modules/@actions/core/' import {UploadOptions, create} from '../node_modules/@actions/artifact/lib/artifact' import {findFilesToUpload} from './search' import {getInputs} from './input-helper' import {NoFileOptions} from './constants' Loading Loading @@ -44,9 +44,7 @@ async function run(): Promise<void> { } const artifactClient = create() const options: UploadOptions = { continueOnError: false } const options: UploadOptions = {} if (inputs.retentionDays) { options.retentionDays = inputs.retentionDays } Loading @@ -58,13 +56,13 @@ async function run(): Promise<void> { options ) if (uploadResponse.failedItems.length > 0) { if (uploadResponse.success === false) { core.setFailed( `An error was encountered when uploading ${uploadResponse.artifactName}. There were ${uploadResponse.failedItems.length} items that failed to upload.` `An error was encountered when uploading ${inputs.artifactName}.` ) } else { core.info( `Artifact ${uploadResponse.artifactName} has been successfully uploaded!` `Artifact ${inputs.artifactName} has been successfully uploaded! Final size is ${uploadResponse.size} bytes. Artifact ID is ${uploadResponse.id}}` ) } } Loading Loading
dist/index.js +118877 −8332 File changed.Preview size limit exceeded, changes collapsed. Show changes
package.json +1 −1 Changes for package.json: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -5,7 +5,7 @@ "main": "dist/index.js", "scripts": { "build": "tsc", "release": "ncc build src/upload-artifact.ts && git add -f dist/", "release": "ncc build src/upload-artifact.ts && git add -f dist/index.js", "check-all": "concurrently \"npm:format-check\" \"npm:lint\" \"npm:test\" \"npm:build\"", "format": "prettier --write **/*.ts", "format-check": "prettier --check **/*.ts", Loading
src/upload-artifact.ts +6 −8 Changes for src/upload-artifact.ts: 6 added lines, 8 removed lines. Original line number Diff line number Diff line import * as core from '@actions/core' import {create, UploadOptions} from '@actions/artifact' import * as core from '../node_modules/@actions/core/' import {UploadOptions, create} from '../node_modules/@actions/artifact/lib/artifact' import {findFilesToUpload} from './search' import {getInputs} from './input-helper' import {NoFileOptions} from './constants' Loading Loading @@ -44,9 +44,7 @@ async function run(): Promise<void> { } const artifactClient = create() const options: UploadOptions = { continueOnError: false } const options: UploadOptions = {} if (inputs.retentionDays) { options.retentionDays = inputs.retentionDays } Loading @@ -58,13 +56,13 @@ async function run(): Promise<void> { options ) if (uploadResponse.failedItems.length > 0) { if (uploadResponse.success === false) { core.setFailed( `An error was encountered when uploading ${uploadResponse.artifactName}. There were ${uploadResponse.failedItems.length} items that failed to upload.` `An error was encountered when uploading ${inputs.artifactName}.` ) } else { core.info( `Artifact ${uploadResponse.artifactName} has been successfully uploaded!` `Artifact ${inputs.artifactName} has been successfully uploaded! Final size is ${uploadResponse.size} bytes. Artifact ID is ${uploadResponse.id}}` ) } } Loading