Skip to content

Commit

Permalink
Merge pull request #14 from sagar-viradiya/sagar/enhancement/cleanup-…
Browse files Browse the repository at this point in the history
…post-script

Cleanup script
  • Loading branch information
sagar-viradiya authored Jul 27, 2020
2 parents 0e3f247 + eae7020 commit 64f6f1d
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 3,109 deletions.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ outputs:
description: 'The SHA-256 hash of the artifact represented as a lowercase hexadecimal number, matching the output of the sha256sum command.'
runs:
using: 'node12'
main: 'dist/index.js'
main: 'dist/index/index.js'
post: 'dist/cleanup/index.js'
branding:
icon: 'upload-cloud'
color: 'green'
85 changes: 85 additions & 0 deletions dist/cleanup/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
module.exports =
/******/ (function(modules, runtime) { // webpackBootstrap
/******/ "use strict";
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ var threw = true;
/******/ try {
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ threw = false;
/******/ } finally {
/******/ if(threw) delete installedModules[moduleId];
/******/ }
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ __webpack_require__.ab = __dirname + "/";
/******/
/******/ // the startup function
/******/ function startup() {
/******/ // Load entry module and return exports
/******/ return __webpack_require__(102);
/******/ };
/******/
/******/ // run startup
/******/ return startup();
/******/ })
/************************************************************************/
/******/ ({

/***/ 102:
/***/ (function(__unusedmodule, exports, __webpack_require__) {

"use strict";

var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const fs = __importStar(__webpack_require__(747));
const serviceAccountFile = "./serviceAccount.json";
try {
fs.unlinkSync(serviceAccountFile);
console.log("Service account JSON file deleted successfully");
}
catch (err) {
console.log(err.message);
}


/***/ }),

/***/ 747:
/***/ (function(module) {

module.exports = require("fs");

/***/ })

/******/ });
File renamed without changes.
Loading

0 comments on commit 64f6f1d

Please sign in to comment.