mirror of
https://gitea.com/actions/upload-artifact.git
synced 2024-08-16 09:49:51 +02:00
.
This commit is contained in:
parent
1f3c0c57c9
commit
c41b3a9519
2 changed files with 0 additions and 218 deletions
204
dist/index.js
vendored
204
dist/index.js
vendored
|
@ -143951,123 +143951,6 @@ function regExpEscape (s) {
|
|||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 26819:
|
||||
/***/ ((module) => {
|
||||
|
||||
// Copyright 2012 the V8 project authors. All rights reserved.
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions are
|
||||
// met:
|
||||
//
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above
|
||||
// copyright notice, this list of conditions and the following
|
||||
// disclaimer in the documentation and/or other materials provided
|
||||
// with the distribution.
|
||||
// * Neither the name of Google Inc. nor the names of its
|
||||
// contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
function FormatStackTrace(error, frames) {
|
||||
var lines = [];
|
||||
try {
|
||||
lines.push(error.toString());
|
||||
} catch (e) {
|
||||
try {
|
||||
lines.push("<error: " + e + ">");
|
||||
} catch (ee) {
|
||||
lines.push("<error>");
|
||||
}
|
||||
}
|
||||
for (var i = 0; i < frames.length; i++) {
|
||||
var frame = frames[i];
|
||||
var line;
|
||||
try {
|
||||
line = frame.toString();
|
||||
} catch (e) {
|
||||
try {
|
||||
line = "<error: " + e + ">";
|
||||
} catch (ee) {
|
||||
// Any code that reaches this point is seriously nasty!
|
||||
line = "<error>";
|
||||
}
|
||||
}
|
||||
lines.push(" at " + line);
|
||||
}
|
||||
return lines.join("\n");
|
||||
}
|
||||
|
||||
module.exports = FormatStackTrace;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 14208:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
|
||||
// v8 builtin format stack trace
|
||||
// for when there was no previous prepareStackTrace function to call
|
||||
var FormatStackTrace = __nccwpck_require__(26819);
|
||||
|
||||
// some notes on the behavior below:
|
||||
// because the 'stack' member is a one shot access variable (the raw stack is
|
||||
// formatted on accessing it)
|
||||
// we try to avoid modifying what the user would have wanted
|
||||
// thus we use the previous value for prepareStackTrace
|
||||
//
|
||||
// The reason we store the callsite variable is because prepareStackTrace
|
||||
// will not be called again once it has been called for a given error object
|
||||
// but we want to support getting the stack out of the error multiple times (cause why not)
|
||||
module.exports = function(err) {
|
||||
|
||||
// save original stacktrace
|
||||
var save = Error.prepareStackTrace;
|
||||
|
||||
// replace capture with our function
|
||||
Error.prepareStackTrace = function(err, trace) {
|
||||
|
||||
// cache stack frames so we don't have to get them again
|
||||
// use a non-enumerable property
|
||||
Object.defineProperty(err, '_sb_callsites', {
|
||||
value: trace
|
||||
});
|
||||
|
||||
return (save || FormatStackTrace)(err, trace);
|
||||
};
|
||||
|
||||
// force capture of the stack frames
|
||||
err.stack;
|
||||
|
||||
// someone already asked for the stack so we can't do this trick
|
||||
// TODO fallback to string parsing?
|
||||
if (!err._sb_callsites) {
|
||||
return [];
|
||||
}
|
||||
|
||||
// return original capture function
|
||||
Error.prepareStackTrace = save;
|
||||
|
||||
return err._sb_callsites;
|
||||
};
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 74294:
|
||||
|
@ -144994,80 +144877,6 @@ function version(uuid) {
|
|||
var _default = version;
|
||||
exports["default"] = _default;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 49719:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
var asyncHooks = __nccwpck_require__(50852)
|
||||
var stackback = __nccwpck_require__(14208)
|
||||
var path = __nccwpck_require__(71017)
|
||||
var fs = __nccwpck_require__(57147)
|
||||
var sep = path.sep
|
||||
|
||||
var active = new Map()
|
||||
var hook = asyncHooks.createHook({
|
||||
init (asyncId, type, triggerAsyncId, resource) {
|
||||
if (type === 'TIMERWRAP' || type === 'PROMISE') return
|
||||
if (type === 'PerformanceObserver' || type === 'RANDOMBYTESREQUEST') return
|
||||
var err = new Error('whatevs')
|
||||
var stacks = stackback(err)
|
||||
active.set(asyncId, {type, stacks, resource})
|
||||
},
|
||||
destroy (asyncId) {
|
||||
active.delete(asyncId)
|
||||
}
|
||||
})
|
||||
|
||||
hook.enable()
|
||||
module.exports = whyIsNodeRunning
|
||||
|
||||
function whyIsNodeRunning (logger) {
|
||||
if (!logger) logger = console
|
||||
|
||||
hook.disable()
|
||||
var activeResources = [...active.values()].filter(function(r) {
|
||||
if (
|
||||
typeof r.resource.hasRef === 'function'
|
||||
&& !r.resource.hasRef()
|
||||
) return false
|
||||
return true
|
||||
})
|
||||
|
||||
logger.error('There are %d handle(s) keeping the process running', activeResources.length)
|
||||
for (const o of activeResources) printStacks(o)
|
||||
|
||||
function printStacks (o) {
|
||||
var stacks = o.stacks.slice(1).filter(function (s) {
|
||||
var filename = s.getFileName()
|
||||
return filename && filename.indexOf(sep) > -1 && filename.indexOf('internal' + sep) !== 0
|
||||
})
|
||||
|
||||
logger.error('')
|
||||
logger.error('# %s', o.type)
|
||||
|
||||
if (!stacks[0]) {
|
||||
logger.error('(unknown stack trace)')
|
||||
} else {
|
||||
var padding = ''
|
||||
stacks.forEach(function (s) {
|
||||
var pad = (s.getFileName() + ':' + s.getLineNumber()).replace(/./g, ' ')
|
||||
if (pad.length > padding.length) padding = pad
|
||||
})
|
||||
stacks.forEach(function (s) {
|
||||
var prefix = s.getFileName() + ':' + s.getLineNumber()
|
||||
try {
|
||||
var src = fs.readFileSync(s.getFileName(), 'utf-8').split(/\n|\r\n/)
|
||||
logger.error(prefix + padding.slice(prefix.length) + ' - ' + src[s.getLineNumber() - 1].trim())
|
||||
} catch (e) {
|
||||
logger.error(prefix + padding.slice(prefix.length))
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 69042:
|
||||
|
@ -145386,7 +145195,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
const why_is_node_running_1 = __importDefault(__nccwpck_require__(49719));
|
||||
const core = __importStar(__nccwpck_require__(42186));
|
||||
const artifact_1 = __importDefault(__nccwpck_require__(99860));
|
||||
const search_1 = __nccwpck_require__(13930);
|
||||
|
@ -145432,18 +145240,6 @@ function run() {
|
|||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
setTimeout(function () {
|
||||
core.notice('ℹ️ why-is-node-running');
|
||||
(0, why_is_node_running_1.default)();
|
||||
}, 100);
|
||||
setTimeout(function () {
|
||||
core.notice('ℹ️ why-is-node-running');
|
||||
(0, why_is_node_running_1.default)();
|
||||
}, 10000);
|
||||
setTimeout(function () {
|
||||
core.notice('ℹ️ why-is-node-running');
|
||||
(0, why_is_node_running_1.default)();
|
||||
}, 30000);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import log from 'why-is-node-running'
|
||||
|
||||
import * as core from '../node_modules/@actions/core/'
|
||||
import artifact, {
|
||||
UploadArtifactOptions
|
||||
|
@ -64,18 +62,6 @@ async function run(): Promise<void> {
|
|||
}
|
||||
} catch (error) {
|
||||
core.setFailed((error as Error).message)
|
||||
setTimeout(function () {
|
||||
core.notice('ℹ️ why-is-node-running')
|
||||
log()
|
||||
}, 100)
|
||||
setTimeout(function () {
|
||||
core.notice('ℹ️ why-is-node-running')
|
||||
log()
|
||||
}, 10000)
|
||||
setTimeout(function () {
|
||||
core.notice('ℹ️ why-is-node-running')
|
||||
log()
|
||||
}, 30000)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue