Skip to content

Commit 2ece26b

Browse files
committed
artifact addition package name
1 parent 15d297d commit 2ece26b

File tree

2 files changed

+4
-63
lines changed

2 files changed

+4
-63
lines changed

browserstack-report-action/dist/index.js

Lines changed: 3 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -110260,19 +110260,15 @@ module.exports = ReportService;
110260110260
/***/ }),
110261110261

110262110262
/***/ 52578:
110263-
/***/ ((module, __webpack_exports__, __nccwpck_require__) => {
110263+
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
110264110264

110265110265
"use strict";
110266-
__nccwpck_require__.r(__webpack_exports__);
110267-
/* harmony import */ var _actions_artifact__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(76846);
110268-
/* harmony import */ var _actions_artifact__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(_actions_artifact__WEBPACK_IMPORTED_MODULE_0__);
110269-
/* module decorator */ module = __nccwpck_require__.hmd(module);
110270110266

110271110267

110272110268
const fs = __nccwpck_require__(79896);
110273110269
const path = __nccwpck_require__(16928);
110274110270
const core = __nccwpck_require__(37484);
110275-
110271+
const artifact = __nccwpck_require__(76846);
110276110272

110277110273
class ArtifactManager {
110278110274
static async saveReportAsArtifact(report, buildName) {
@@ -110299,7 +110295,7 @@ class ArtifactManager {
110299110295
// const artifactClient = artifact.createArtifactClient();
110300110296
const artifactName = `browserstack-report-${sanitizedBuildName}`;
110301110297

110302-
const uploadResult = await _actions_artifact__WEBPACK_IMPORTED_MODULE_0___default().uploadArtifact(
110298+
const uploadResult = await artifact.uploadArtifact(
110303110299
artifactName,
110304110300
[filePath],
110305110301
artifactDir,
@@ -135522,61 +135518,6 @@ module.exports = /*#__PURE__*/JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45
135522135518
/******/ }
135523135519
/******/
135524135520
/************************************************************************/
135525-
/******/ /* webpack/runtime/compat get default export */
135526-
/******/ (() => {
135527-
/******/ // getDefaultExport function for compatibility with non-harmony modules
135528-
/******/ __nccwpck_require__.n = (module) => {
135529-
/******/ var getter = module && module.__esModule ?
135530-
/******/ () => (module['default']) :
135531-
/******/ () => (module);
135532-
/******/ __nccwpck_require__.d(getter, { a: getter });
135533-
/******/ return getter;
135534-
/******/ };
135535-
/******/ })();
135536-
/******/
135537-
/******/ /* webpack/runtime/define property getters */
135538-
/******/ (() => {
135539-
/******/ // define getter functions for harmony exports
135540-
/******/ __nccwpck_require__.d = (exports, definition) => {
135541-
/******/ for(var key in definition) {
135542-
/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) {
135543-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
135544-
/******/ }
135545-
/******/ }
135546-
/******/ };
135547-
/******/ })();
135548-
/******/
135549-
/******/ /* webpack/runtime/harmony module decorator */
135550-
/******/ (() => {
135551-
/******/ __nccwpck_require__.hmd = (module) => {
135552-
/******/ module = Object.create(module);
135553-
/******/ if (!module.children) module.children = [];
135554-
/******/ Object.defineProperty(module, 'exports', {
135555-
/******/ enumerable: true,
135556-
/******/ set: () => {
135557-
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
135558-
/******/ }
135559-
/******/ });
135560-
/******/ return module;
135561-
/******/ };
135562-
/******/ })();
135563-
/******/
135564-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
135565-
/******/ (() => {
135566-
/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
135567-
/******/ })();
135568-
/******/
135569-
/******/ /* webpack/runtime/make namespace object */
135570-
/******/ (() => {
135571-
/******/ // define __esModule on exports
135572-
/******/ __nccwpck_require__.r = (exports) => {
135573-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
135574-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
135575-
/******/ }
135576-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
135577-
/******/ };
135578-
/******/ })();
135579-
/******/
135580135521
/******/ /* webpack/runtime/node module decorator */
135581135522
/******/ (() => {
135582135523
/******/ __nccwpck_require__.nmd = (module) => {

browserstack-report-action/src/utils/ArtifactManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const fs = require('fs');
44
const path = require('path');
55
const core = require('@actions/core');
6-
import artifact from '@actions/artifact'
6+
const artifact = require('@actions/artifact');
77

88
class ArtifactManager {
99
static async saveReportAsArtifact(report, buildName) {

0 commit comments

Comments
 (0)