Skip to content

Commit 0afda66

Browse files
committed
add installation id
1 parent 2ec44f1 commit 0afda66

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ jobs:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
APP_ID: ${{ env.APP_ID }}
4444
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
45+
INSTALLATION_ID: ${{ env.INSTALLATION_ID }}
4546
CLIENT_ID: ${{ env.CLIENT_ID }}
4647
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (!process.env.GITHUB_REF?.startsWith("refs/pull/")) {
88

99
const appId = parseInt(process.env.APP_ID!);
1010
const privateKey = process.env.PRIVATE_KEY!;
11-
const installationId = appId;
11+
const installationId = parseInt(process.env.INSTALLATION_ID!);
1212
const clientId = process.env.CLIENT_ID!;
1313
const clientSecret = process.env.CLIENT_SECRET!;
1414

0 commit comments

Comments
 (0)