Skip to content

Commit 6801829

Browse files
committed
update
1 parent cf400ee commit 6801829

4 files changed

Lines changed: 73 additions & 14 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,8 @@ jobs:
3030
environment:
3131
name: MyEnvironment
3232
steps:
33-
- uses: actions/checkout@v4
34-
- uses: actions/setup-node@v4
35-
with:
36-
node-version: 20
37-
- uses: actions/download-artifact@v4
33+
- uses: ./
3834
with:
39-
name: compilation_log
40-
- run: node dist/index.js
41-
env:
4235
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4336
APP_ID: ${{ vars.APP_ID }}
4437
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

package-lock.json

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"octokit": "^4.1.3"
1010
},
1111
"devDependencies": {
12-
"tslib": "^2.8.1",
1312
"@octokit/tsconfig": "^4.0.0",
1413
"@rollup/plugin-commonjs": "^28.0.3",
1514
"@rollup/plugin-node-resolve": "^16.0.1",
1615
"@rollup/plugin-typescript": "^12.1.2",
1716
"@types/node": "^22.15.2",
1817
"rollup": "^4.40.0",
18+
"tslib": "^2.8.1",
1919
"typescript": "^5.8.3"
2020
}
2121
}

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ if (!process.env.GITHUB_REF?.startsWith("refs/pull/")) {
66
process.exit(0);
77
}
88

9-
const appId = parseInt(process.env.APP_ID!);
10-
const privateKey = process.env.PRIVATE_KEY!;
11-
const installationId = parseInt(process.env.INSTALLATION_ID!);
12-
const clientId = process.env.CLIENT_ID!;
13-
const clientSecret = process.env.CLIENT_SECRET!;
9+
const appId = parseInt(process.env.INPUT_APP_ID!);
10+
const privateKey = process.env.INPUT_PRIVATE_KEY!;
11+
const installationId = parseInt(process.env.INPUT_INSTALLATION_ID!);
12+
const clientId = process.env.INPUT_CLIENT_ID!;
13+
const clientSecret = process.env.INPUT_CLIENT_SECRET!;
1414

1515
console.log(appId, installationId, clientId);
1616

0 commit comments

Comments
 (0)