4451bcbc13
BREAKING CHANGE: Custom proxy handling has been removed. If you use HTTP_PROXY or HTTPS_PROXY, you must now also set NODE_USE_ENV_PROXY=1 on the action step.
19 lines
361 B
JavaScript
19 lines
361 B
JavaScript
// @ts-check
|
|
|
|
import * as core from "@actions/core";
|
|
|
|
import { post } from "./lib/post.js";
|
|
import request, { ensureNativeProxySupport } from "./lib/request.js";
|
|
|
|
async function run() {
|
|
ensureNativeProxySupport();
|
|
|
|
return post(core, request);
|
|
}
|
|
|
|
run().catch((error) => {
|
|
/* c8 ignore next 3 */
|
|
console.error(error);
|
|
core.setFailed(error.message);
|
|
});
|