Skip to content

Commit

Permalink
Merge branch 'release/1.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed May 8, 2021
2 parents d8d602d + 136f2a6 commit f517512
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 51 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]

## [1.2.2] - 2021-05-08
### Fixed
* Fix GitHub deployment description

### Changed
* Update dependencies

## [1.2.1] - 2021-05-05
### Added
* Add "fails-without-credentials" input to fail if the credentials not provided [#532](https://github.com/nwtgck/actions-netlify/pull/532)
Expand Down Expand Up @@ -172,7 +179,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
* Deploy to Netlify
* Comment on GitHub PR

[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.2.1...HEAD
[Unreleased]: https://github.com/nwtgck/actions-netlify/compare/v1.2.2...HEAD
[1.2.2]: https://github.com/nwtgck/actions-netlify/compare/v1.2.1...v1.2.2
[1.2.1]: https://github.com/nwtgck/actions-netlify/compare/v1.2.0...v1.2.1
[1.2.0]: https://github.com/nwtgck/actions-netlify/compare/v1.1.13...v1.2.0
[1.1.13]: https://github.com/nwtgck/actions-netlify/compare/v1.1.12...v1.1.13
Expand Down
85 changes: 58 additions & 27 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ function run(inputs) {
: github_1.context.issue.number !== undefined
? 'pull request'
: 'commit');
const description = inputs.githubDeploymentEnvironment();
const description = inputs.githubDeploymentDescription();
// Create GitHub Deployment
yield createGitHubDeployment(githubClient, deployUrl, environment, description);
}
Expand Down Expand Up @@ -197987,11 +197987,13 @@ module.exports = eos;
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {

var __defProp = Object.defineProperty;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __defProps = Object.defineProperties;
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __propIsEnum = Object.prototype.propertyIsEnumerable;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value;
var __objSpread = (a, b) => {
var __spreadValues = (a, b) => {
for (var prop in b || (b = {}))
if (__hasOwnProp.call(b, prop))
__defNormalProp(a, prop, b[prop]);
Expand All @@ -198002,6 +198004,7 @@ var __objSpread = (a, b) => {
}
return a;
};
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
var __markAsModule = (target) => __defProp(target, "__esModule", {value: true});
var __export = (target, all) => {
for (var name in all)
Expand Down Expand Up @@ -198239,7 +198242,7 @@ function pushLogFlags(flags, options, keys, isTTY2, logLevelDefault) {
let color = getFlag(options, keys, "color", mustBeBoolean);
let logLevel = getFlag(options, keys, "logLevel", mustBeString);
let logLimit = getFlag(options, keys, "logLimit", mustBeInteger);
if (color)
if (color !== void 0)
flags.push(`--color=${color}`);
else if (isTTY2)
flags.push(`--color=true`);
Expand Down Expand Up @@ -198671,8 +198674,8 @@ function createChannel(streamIn) {
if (isFirstPacket) {
isFirstPacket = false;
let binaryVersion = String.fromCharCode(...bytes);
if (binaryVersion !== "0.11.18") {
throw new Error(`Cannot start service: Host version "${"0.11.18"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
if (binaryVersion !== "0.11.20") {
throw new Error(`Cannot start service: Host version "${"0.11.20"}" does not match binary version ${JSON.stringify(binaryVersion)}`);
}
return;
}
Expand Down Expand Up @@ -198897,15 +198900,15 @@ function createChannel(streamIn) {
throw new Error(`Invalid command: ` + request.command);
}
};
let runOnEndCallbacks = (result, done) => done();
let runOnEndCallbacks = (result, logPluginError, done) => done();
if (onEndCallbacks.length > 0) {
runOnEndCallbacks = (result, done) => {
runOnEndCallbacks = (result, logPluginError, done) => {
(async () => {
for (const {name, callback: callback2, note} of onEndCallbacks) {
try {
await callback2(result);
} catch (e) {
result.errors.push(extractErrorMessageV8(e, streamIn, stash, note && note(), name));
result.errors.push(await new Promise((resolve) => logPluginError(e, name, note && note(), resolve)));
}
}
})().then(done);
Expand Down Expand Up @@ -198980,15 +198983,20 @@ function createChannel(streamIn) {
plugins = value;
}
}
let handleError = (e, pluginName) => {
let logPluginError = (e, pluginName, note, done) => {
let flags = [];
try {
pushLogFlags(flags, options, {}, isTTY2, buildLogLevelDefault);
} catch (e2) {
}
const error = extractErrorMessageV8(e, streamIn, details, void 0, pluginName);
sendRequest(refs, {command: "error", flags, error}, () => {
error.detail = details.load(error.detail);
const message = extractErrorMessageV8(e, streamIn, details, note, pluginName);
sendRequest(refs, {command: "error", flags, error: message}, () => {
message.detail = details.load(message.detail);
done(message);
});
};
let handleError = (e, pluginName) => {
logPluginError(e, pluginName, void 0, (error) => {
callback(failureErrorWithLog("Build failed", [error], []), null);
});
};
Expand All @@ -199000,9 +199008,10 @@ function createChannel(streamIn) {
handleError(result.error, result.pluginName);
} else {
try {
buildOrServeContinue(__objSpread(__objSpread({}, args), {
buildOrServeContinue(__spreadProps(__spreadValues({}, args), {
key,
details,
logPluginError,
requestPlugins: result.requestPlugins,
runOnEndCallbacks: result.runOnEndCallbacks,
pluginRefs: result.pluginRefs
Expand All @@ -199014,11 +199023,12 @@ function createChannel(streamIn) {
}, (e) => handleError(e, ""));
} else {
try {
buildOrServeContinue(__objSpread(__objSpread({}, args), {
buildOrServeContinue(__spreadProps(__spreadValues({}, args), {
key,
details,
logPluginError,
requestPlugins: null,
runOnEndCallbacks: (result, done) => done(),
runOnEndCallbacks: (result, logPluginError2, done) => done(),
pluginRefs: null
}));
} catch (e) {
Expand All @@ -199036,6 +199046,7 @@ function createChannel(streamIn) {
callback,
key,
details,
logPluginError,
requestPlugins,
runOnEndCallbacks,
pluginRefs
Expand Down Expand Up @@ -199097,7 +199108,7 @@ function createChannel(streamIn) {
warnings: replaceDetailsInMessages(response.warnings, details)
};
copyResponseToResult(response, result);
runOnEndCallbacks(result, () => {
runOnEndCallbacks(result, logPluginError, () => {
if (result.errors.length > 0) {
return callback2(failureErrorWithLog("Build failed", result.errors, result.warnings), null);
}
Expand Down Expand Up @@ -199157,7 +199168,7 @@ function createChannel(streamIn) {
warnings: replaceDetailsInMessages(watchResponse.warnings, details)
};
copyResponseToResult(watchResponse, result2);
runOnEndCallbacks(result2, () => {
runOnEndCallbacks(result2, logPluginError, () => {
if (result2.errors.length > 0) {
if (watch.onRebuild)
watch.onRebuild(failureErrorWithLog("Build failed", result2.errors, result2.warnings), null);
Expand Down Expand Up @@ -199526,6 +199537,11 @@ var esbuildCommandAndArgs = () => {
if (process.env.ESBUILD_BINARY_PATH) {
return [path.resolve(process.env.ESBUILD_BINARY_PATH), []];
}
if (path.basename(__filename) !== "main.js" || path.basename(__dirname) !== "lib") {
throw new Error(`The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.

More information: The file containing the code for esbuild's JavaScript API (${__filename}) does not appear to be inside the esbuild package on the file system, which usually means that the esbuild package was bundled into another file. This is problematic because the API needs to run a binary executable inside the esbuild package which is located using a relative path from the API code to the executable. If the esbuild package is bundled, the relative path will be incorrect and the executable won't be found.`);
}
if (false) {}
if (process.platform === "win32") {
return [path.join(__dirname, "..", "esbuild.exe"), []];
Expand Down Expand Up @@ -199583,7 +199599,7 @@ var fsAsync = {
}
}
};
var version = "0.11.18";
var version = "0.11.20";
var build = (options) => ensureServiceIsRunning().build(options);
var serve = (serveOptions, buildOptions) => ensureServiceIsRunning().serve(serveOptions, buildOptions);
var transform = (input, options) => ensureServiceIsRunning().transform(input, options);
Expand Down Expand Up @@ -199671,7 +199687,7 @@ var ensureServiceIsRunning = () => {
if (longLivedService)
return longLivedService;
let [command, args] = esbuildCommandAndArgs();
let child = child_process.spawn(command, args.concat(`--service=${"0.11.18"}`, "--ping"), {
let child = child_process.spawn(command, args.concat(`--service=${"0.11.20"}`, "--ping"), {
windowsHide: true,
stdio: ["pipe", "pipe", "inherit"],
cwd: defaultWD
Expand Down Expand Up @@ -199769,7 +199785,7 @@ var runServiceSync = (callback) => {
isBrowser: false
});
callback(service);
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.11.18"}`), {
let stdout = child_process.execFileSync(command, args.concat(`--service=${"0.11.20"}`), {
cwd: defaultWD,
windowsHide: true,
input: stdin,
Expand Down Expand Up @@ -245955,6 +245971,7 @@ var match = String.prototype.match;
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
var gOPS = Object.getOwnPropertySymbols;
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
var isEnumerable = Object.prototype.propertyIsEnumerable;

var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
Expand All @@ -245967,7 +245984,7 @@ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPr

var inspectCustom = __nccwpck_require__(76575).custom;
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol' ? Symbol.toStringTag : null;
var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;

module.exports = function inspect_(obj, options, depth, seen) {
var opts = options || {};
Expand Down Expand Up @@ -246057,8 +246074,8 @@ module.exports = function inspect_(obj, options, depth, seen) {
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
}
if (isSymbol(obj)) {
var symString = symToString.call(obj);
return typeof obj === 'object' ? markBoxed(symString) : symString;
var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
}
if (isElement(obj)) {
var s = '<' + String(obj.nodeName).toLowerCase();
Expand Down Expand Up @@ -246161,6 +246178,9 @@ function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toString

// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
function isSymbol(obj) {
if (hasShammedSymbols) {
return obj && typeof obj === 'object' && obj instanceof Symbol;
}
if (typeof obj === 'symbol') {
return true;
}
Expand Down Expand Up @@ -246368,17 +246388,28 @@ function arrObjKeys(obj, inspect) {
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
}
}
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
var symMap;
if (hasShammedSymbols) {
symMap = {};
for (var k = 0; k < syms.length; k++) {
symMap['$' + syms[k]] = syms[k];
}
}

for (var key in obj) { // eslint-disable-line no-restricted-syntax
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
if ((/[^\w$]/).test(key)) {
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
continue; // eslint-disable-line no-restricted-syntax, no-continue
} else if ((/[^\w$]/).test(key)) {
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
} else {
xs.push(key + ': ' + inspect(obj[key], obj));
}
}
if (typeof gOPS === 'function') {
var syms = gOPS(obj);
for (var j = 0; j < syms.length; j++) {
if (isEnumerable.call(obj, syms[j])) {
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
Expand Down Expand Up @@ -248765,7 +248796,7 @@ const addQueryParams = function (url, parameters, requestParams) {
return url
}

return `${url}?${queryString.stringify(queryParams)}`
return `${url}?${queryString.stringify(queryParams, { arrayFormat: 'brackets' })}`
}

const getRequestParams = function (params, requestParams, name) {
Expand Down
38 changes: 19 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 comments on commit f517512

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.