diff --git a/lib/resolve-environment-action.js b/lib/resolve-environment-action.js new file mode 100644 index 0000000000..75dd52a296 --- /dev/null +++ b/lib/resolve-environment-action.js @@ -0,0 +1,41 @@ +"use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const core = __importStar(require("@actions/core")); +const util_1 = require("./util"); +async function run() { + return; +} +async function runWrapper() { + try { + await run(); + } + catch (error) { + core.setFailed(`resolve environment action failed: ${(0, util_1.wrapError)(error).message}`); + } + await (0, util_1.checkForTimeout)(); +} +void runWrapper(); +//# sourceMappingURL=resolve-environment-action.js.map \ No newline at end of file diff --git a/lib/resolve-environment-action.js.map b/lib/resolve-environment-action.js.map new file mode 100644 index 0000000000..38fbe58753 --- /dev/null +++ b/lib/resolve-environment-action.js.map @@ -0,0 +1 @@ +{"version":3,"file":"resolve-environment-action.js","sourceRoot":"","sources":["../src/resolve-environment-action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAsC;AAEtC,iCAAoD;AAEpD,KAAK,UAAU,GAAG;IAChB,OAAO;AACT,CAAC;AAED,KAAK,UAAU,UAAU;IACvB,IAAI;QACF,MAAM,GAAG,EAAE,CAAC;KACb;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CACZ,sCAAsC,IAAA,gBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CACjE,CAAC;KACH;IACD,MAAM,IAAA,sBAAe,GAAE,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/resolve-environment/action.yml b/resolve-environment/action.yml new file mode 100644 index 0000000000..e97468f255 --- /dev/null +++ b/resolve-environment/action.yml @@ -0,0 +1,6 @@ +name: 'CodeQL: Resolve Build Environment' +description: 'Attempt to infer a suitable environment configuration for the autobuilder' +author: 'GitHub' +runs: + using: 'node16' + main: '../lib/resolve-environment-action.js' diff --git a/src/resolve-environment-action.ts b/src/resolve-environment-action.ts new file mode 100644 index 0000000000..2aa32f5188 --- /dev/null +++ b/src/resolve-environment-action.ts @@ -0,0 +1,20 @@ +import * as core from "@actions/core"; + +import { checkForTimeout, wrapError } from "./util"; + +async function run() { + return; +} + +async function runWrapper() { + try { + await run(); + } catch (error) { + core.setFailed( + `resolve environment action failed: ${wrapError(error).message}` + ); + } + await checkForTimeout(); +} + +void runWrapper();