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
|
- run: npm run build
|
||||||
- uses: ./ # Uses the action in the root directory
|
- uses: ./ # Uses the action in the root directory
|
||||||
id: test
|
id: test
|
||||||
|
env:
|
||||||
|
https_proxy: https://example.com
|
||||||
with:
|
with:
|
||||||
app-id: ${{ vars.TEST_APP_ID }}
|
app-id: ${{ vars.TEST_APP_ID }}
|
||||||
private-key: ${{ secrets.TEST_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.TEST_APP_PRIVATE_KEY }}
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
import core from "@actions/core";
|
import core from "@actions/core";
|
||||||
import { request } from "@octokit/request";
|
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
|
// Get the GitHub API URL from the action input and remove any trailing slash
|
||||||
const baseUrl = core.getInput("github-api-url").replace(/\/$/, "");
|
const baseUrl = core.getInput("github-api-url").replace(/\/$/, "");
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
|
|
||||||
import core from "@actions/core";
|
import core from "@actions/core";
|
||||||
import { createAppAuth } from "@octokit/auth-app";
|
import { createAppAuth } from "@octokit/auth-app";
|
||||||
|
|
||||||
@@ -38,7 +37,7 @@ export default main(
|
|||||||
core,
|
core,
|
||||||
createAppAuth,
|
createAppAuth,
|
||||||
request,
|
request,
|
||||||
skipTokenRevoke,
|
skipTokenRevoke
|
||||||
).catch((error) => {
|
).catch((error) => {
|
||||||
/* c8 ignore next 3 */
|
/* c8 ignore next 3 */
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|||||||
Reference in New Issue
Block a user