mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00

* Additional Integration tests (#123) * Update integration-beta.yml * git fetch again * git fetch * Tests * Failing Build (#124) * Bump @types/node from 13.1.6 to 13.1.7 (#126) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 13.1.6 to 13.1.7. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Bump @types/jest from 24.0.25 to 24.9.0 (#127) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 24.0.25 to 24.9.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * js > ts * License Upgrades * Bump typescript from 3.7.4 to 3.7.5 (#132) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.7.4 to 3.7.5. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v3.7.4...v3.7.5) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * [Issue-133] Customizable Commit Messages (#134) * Customizable Commit Messages * Removes lodash * Update package.json * README * Changes * Check for null * Adds a dash * Support action/checkout@v2 (#136) * Create CODEOWNERS * Update integration.yml * Adds automatic issue labels (#139) * [Issue-130] SSH Support (#140) * First pass at deploy key support * Needed * More ssh * Adds keyscan * Another look at this * More things.... * w * Path to home * w * k * Update git.ts * ff * dd * test * File Sync maybe * Adds SSH Examples * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * Update README.md * x * c * Update README.md * Integration tests * Update integration-beta.yml * More Changes * Update README.md * README Reorg * Update README.md * Update README.md * Update README.md * Adds correct metadata * Update action.yml * Formatting * Update build.yml * Adds CodeCov report * Update README.md * Test Coverage Improvements (#141) * Test Coverage Improvements * Update env.js * More Test Coverage / Imps * Update README.md * Formatting * Update git.js * Test Names... * Update action.yml Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
38 lines
1.5 KiB
JavaScript
38 lines
1.5 KiB
JavaScript
"use strict";
|
|
var __awaiter = (this && this.__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) {
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
});
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const exec_1 = require("@actions/exec");
|
|
// Stores the output from execute.
|
|
let output;
|
|
/** Wrapper around the GitHub toolkit exec command which returns the output.
|
|
* Also allows you to easily toggle the current working directory.
|
|
* @param {String} cmd = The command to execute.
|
|
* @param {String} cwd - The current working directory.
|
|
* @returns {Promise} - The output from the command.
|
|
*/
|
|
function execute(cmd, cwd) {
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
output = "";
|
|
yield exec_1.exec(cmd, [], {
|
|
cwd,
|
|
listeners: {
|
|
stdout
|
|
}
|
|
});
|
|
return Promise.resolve(output);
|
|
});
|
|
}
|
|
exports.execute = execute;
|
|
function stdout(data) {
|
|
output += data.toString().trim();
|
|
}
|
|
exports.stdout = stdout;
|