Updates to logging for artifact uploads (#949)

* More details logs during artifact upload

* extra logging

* Updates to artifact logging + clarifications around upload size

* Fix linting errors

* Update packages/artifact/src/internal/artifact-client.ts

Co-authored-by: campersau <buchholz.bastian@googlemail.com>

Co-authored-by: campersau <buchholz.bastian@googlemail.com>
This commit is contained in:
Konrad Pabjan
2021-11-30 12:53:24 -05:00
committed by GitHub
parent e19e4261da
commit 4df5abb3ee
5 changed files with 73 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import * as fs from 'fs'
import {debug} from '@actions/core'
import {join, normalize, resolve} from 'path'
import {checkArtifactName, checkArtifactFilePath} from './utils'
import {checkArtifactFilePath} from './utils'
export interface UploadSpecification {
absoluteFilePath: string
@@ -19,8 +19,7 @@ export function getUploadSpecification(
rootDirectory: string,
artifactFiles: string[]
): UploadSpecification[] {
checkArtifactName(artifactName)
// artifact name was checked earlier on, no need to check again
const specifications: UploadSpecification[] = []
if (!fs.existsSync(rootDirectory)) {