Skip to content

Commit 82a9c30

Browse files
committed
fix(action): build
1 parent e7a8e5f commit 82a9c30

File tree

5 files changed

+27355
-128
lines changed

5 files changed

+27355
-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: 9 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";
@@ -10,6 +11,14 @@ export class GitHubPlatformKit extends PlatformKit {
1011
if (!this._octokit) {
1112
this._octokit = new Octokit({ auth: this.platformConfig.ghToken });
1213
}
14+
15+
process.env.LINGODOTDEV_API_KEY = core.getInput("api-key");
16+
process.env.LINGODOTDEV_PULL_REQUEST = core.getInput("pull-request");
17+
process.env.LINGODOTDEV_COMMIT_MESSAGE = core.getInput("commit-message");
18+
process.env.LINGODOTDEV_PULL_REQUEST_TITLE = core.getInput("pull-request-title");
19+
process.env.LINGODOTDEV_WORKING_DIRECTORY = core.getInput("working-directory");
20+
process.env.LINGODOTDEV_PROCESS_OWN_COMMITS = core.getInput("process-own-commits");
21+
1322
return this._octokit;
1423
}
1524

action/src/pre.ts

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

0 commit comments

Comments
 (0)