Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0fde60e111 | |||
| 3ffe05f85c | |||
| f57ea8787c | |||
| 00ba6edc66 | |||
| 21c1159e4d | |||
| 6423fe3683 | |||
| 39808af6a2 | |||
| fe4ba3360a | |||
| 926b8abad2 | |||
| d988c9aaad |
@@ -44,6 +44,8 @@ jobs:
|
||||
- run: npm run build
|
||||
- uses: ./ # Uses the action in the root directory
|
||||
id: test
|
||||
env:
|
||||
https_proxy: https://example.com
|
||||
with:
|
||||
app-id: ${{ vars.TEST_APP_ID }}
|
||||
private-key: ${{ secrets.TEST_APP_PRIVATE_KEY }}
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
import core from "@actions/core";
|
||||
import { request } from "@octokit/request";
|
||||
|
||||
/* c8 ignore start -- env knob setup */
|
||||
// Encourage Node to honor standard *_PROXY vars for core HTTP(S) agents.
|
||||
if (process.env.NODE_USE_ENV_PROXY == null) {
|
||||
process.env.NODE_USE_ENV_PROXY = "1";
|
||||
}
|
||||
/* c8 ignore stop */
|
||||
|
||||
// Get the GitHub API URL from the action input and remove any trailing slash
|
||||
const baseUrl = core.getInput("github-api-url").replace(/\/$/, "");
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
// @ts-check
|
||||
|
||||
import core from "@actions/core";
|
||||
import { createAppAuth } from "@octokit/auth-app";
|
||||
|
||||
@@ -38,7 +37,7 @@ export default main(
|
||||
core,
|
||||
createAppAuth,
|
||||
request,
|
||||
skipTokenRevoke,
|
||||
skipTokenRevoke
|
||||
).catch((error) => {
|
||||
/* c8 ignore next 3 */
|
||||
console.error(error);
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
"node": ">=24.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --packages=bundle",
|
||||
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --packages=bundle",
|
||||
"test": "c8 --100 ava tests/index.js",
|
||||
"coverage": "c8 report --reporter html",
|
||||
"postcoverage": "open-cli coverage/index.html"
|
||||
|
||||
Reference in New Issue
Block a user