Skip to content

Commit 6d02486

Browse files
committed
fix(action): build
1 parent e7a8e5f commit 6d02486

File tree

5 files changed

+27358
-128
lines changed

5 files changed

+27358
-128
lines changed

action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ branding:
99
runs:
1010
using: "node20"
1111
main: "action/build/index.cjs"
12-
pre: "action/build/pre.cjs"
1312

1413
inputs:
1514
api-key:

action/build/index.cjs

Lines changed: 27346 additions & 103 deletions
Large diffs are not rendered by default.

action/rollup.config.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,6 @@ const config = [
1010
file: "build/index.cjs",
1111
format: "cjs",
1212
},
13-
// external: ["axios", "os", "url"],
14-
plugins: [
15-
resolve(),
16-
commonjs(),
17-
typescript({
18-
outDir: "build",
19-
}),
20-
json(),
21-
],
22-
},
23-
{
24-
input: "src/pre.ts",
25-
output: {
26-
file: "build/pre.cjs",
27-
format: "cjs",
28-
},
2913
plugins: [
3014
resolve(),
3115
commonjs(),

action/src/platforms/github.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import core from "@actions/core";
12
import { Octokit } from "octokit";
23
import { PlatformKit } from "./_base.js";
34
import Z from "zod";
@@ -6,6 +7,17 @@ import { execSync } from "child_process";
67
export class GitHubPlatformKit extends PlatformKit {
78
private _octokit?: Octokit;
89

10+
constructor() {
11+
process.env.LINGODOTDEV_API_KEY = core.getInput("api-key");
12+
process.env.LINGODOTDEV_PULL_REQUEST = core.getInput("pull-request");
13+
process.env.LINGODOTDEV_COMMIT_MESSAGE = core.getInput("commit-message");
14+
process.env.LINGODOTDEV_PULL_REQUEST_TITLE = core.getInput("pull-request-title");
15+
process.env.LINGODOTDEV_WORKING_DIRECTORY = core.getInput("working-directory");
16+
process.env.LINGODOTDEV_PROCESS_OWN_COMMITS = core.getInput("process-own-commits");
17+
18+
super();
19+
}
20+
921
get octokit() {
1022
if (!this._octokit) {
1123
this._octokit = new Octokit({ auth: this.platformConfig.ghToken });

action/src/pre.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)