mirror of
https://gitea.com/actions/upload-artifact.git
synced 2025-05-10 17:56:44 +08:00
Update release
This commit is contained in:
parent
2e9213cbb6
commit
473c46c473
9
dist/index.js
vendored
9
dist/index.js
vendored
@ -2406,18 +2406,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const core = __importStar(__webpack_require__(470));
|
const core = __importStar(__webpack_require__(470));
|
||||||
const artifact = __importStar(__webpack_require__(214));
|
const artifact = __importStar(__webpack_require__(214));
|
||||||
const constants_1 = __webpack_require__(694); //eslint-disable-line @typescript-eslint/no-unused-vars
|
const constants_1 = __webpack_require__(694);
|
||||||
const search_1 = __webpack_require__(575);
|
const search_1 = __webpack_require__(575);
|
||||||
function run() {
|
function run() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
const name = core.getInput(constants_1.Inputs.Name, { required: false }); //eslint-disable-line @typescript-eslint/no-unused-vars
|
const name = core.getInput(constants_1.Inputs.Name, { required: false });
|
||||||
const path = core.getInput(constants_1.Inputs.Path, { required: true });
|
const path = core.getInput(constants_1.Inputs.Path, { required: true });
|
||||||
const searchResult = yield search_1.findFilesToUpload(path);
|
const searchResult = yield search_1.findFilesToUpload(path);
|
||||||
if (searchResult.filesToUpload.length === 0) {
|
if (searchResult.filesToUpload.length === 0) {
|
||||||
core.warning(`No files were found for the provided path: ${path}. No artifacts will be uploaded.`);
|
core.warning(`No files were found for the provided path: ${path}. No artifacts will be uploaded.`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
core.info(`With the provided path, there will be ${searchResult.filesToUpload.length} files uploaded`);
|
||||||
|
for (const file of searchResult.filesToUpload) {
|
||||||
|
core.debug(`Upload file: ${file}`);
|
||||||
|
}
|
||||||
|
core.debug(`Root artifact directory is ${searchResult.rootDirectory}`);
|
||||||
const artifactClient = artifact.create();
|
const artifactClient = artifact.create();
|
||||||
const options = {
|
const options = {
|
||||||
continueOnError: true
|
continueOnError: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user