Skip to content

Commit

Permalink
post: remove name flag
Browse files Browse the repository at this point in the history
Builder name is now stored in state metadata.json file. So, flag --name is no longer needed.
  • Loading branch information
gmichelo committed Jun 1, 2023
1 parent cdf8fd4 commit 1747281
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 15 deletions.
48 changes: 35 additions & 13 deletions dist/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4115,6 +4115,35 @@ module.exports = require("util");
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/compat get default export */
/******/ (() => {
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __nccwpck_require__.n = (module) => {
/******/ var getter = module && module.__esModule ?
/******/ () => (module['default']) :
/******/ () => (module);
/******/ __nccwpck_require__.d(getter, { a: getter });
/******/ return getter;
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __nccwpck_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__nccwpck_require__.o(definition, key) && !__nccwpck_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
Expand All @@ -4135,17 +4164,11 @@ var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
(() => {
"use strict";
// ESM COMPAT FLAG
__nccwpck_require__.r(__webpack_exports__);

// EXTERNAL MODULE: ./node_modules/@actions/core/lib/core.js
var core = __nccwpck_require__(186);
// EXTERNAL MODULE: ./node_modules/@actions/exec/lib/exec.js
var exec = __nccwpck_require__(514);
;// CONCATENATED MODULE: ./common.ts
const nscRemoteBuilderName = "remote-nsc";

;// CONCATENATED MODULE: ./post.ts
/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(186);
/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__nccwpck_require__.n(_actions_core__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _actions_exec__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(514);
/* harmony import */ var _actions_exec__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__nccwpck_require__.n(_actions_exec__WEBPACK_IMPORTED_MODULE_1__);
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
Expand All @@ -4157,14 +4180,13 @@ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _argume
};



function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
yield exec.exec(`nsc docker buildx cleanup --name=${nscRemoteBuilderName}`);
yield _actions_exec__WEBPACK_IMPORTED_MODULE_1__.exec(`nsc docker buildx cleanup`);
}
catch (error) {
core.setFailed(error.message);
_actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed(error.message);
}
});
}
Expand Down
3 changes: 1 addition & 2 deletions post.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import * as core from "@actions/core";
import * as exec from "@actions/exec";
import { nscRemoteBuilderName } from "./common";

async function run(): Promise<void> {
try {
await exec.exec(
`nsc docker buildx cleanup --name=${nscRemoteBuilderName}`
`nsc docker buildx cleanup`
);
} catch (error) {
core.setFailed(error.message);
Expand Down

0 comments on commit 1747281

Please sign in to comment.