Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
natavmelo committed Dec 10, 2024
1 parent de81d3e commit 9c68129
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
10 changes: 5 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30351,11 +30351,11 @@ function run() {
creator
};
const description = `Deploy: ${application} ${ref} ${environment} ${infrastructure}`;
const appId = process.env.DK_CICD_GITHUB_APP_ID || '';
const installationId = process.env.DK_CICD_GITHUB_INSTALLATION_ID || '';
const privateKey = process.env.DK_CICD_GITHUB_PK
? process.env.DK_CICD_GITHUB_PK.replaceAll(`"`, ``).replaceAll(`\\n`, `\n`)
: '';
const appId = (0, core_1.getInput)('appId');
const installationId = (0, core_1.getInput)('installationId') || '';
const privateKey = (0, core_1.getInput)('privateKey')
.replaceAll(`"`, ``)
.replaceAll(`\\n`, `\n`);
const octokit = new rest_1.Octokit({
authStrategy: auth_app_1.createAppAuth,
auth: {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ export async function run(): Promise<void> {
}
const description = `Deploy: ${application} ${ref} ${environment} ${infrastructure}`

const appId = process.env.DK_CICD_GITHUB_APP_ID || ''
const installationId = process.env.DK_CICD_GITHUB_INSTALLATION_ID || ''
const privateKey = process.env.DK_CICD_GITHUB_PK
? process.env.DK_CICD_GITHUB_PK.replaceAll(`"`, ``).replaceAll(`\\n`, `\n`)
: ''
const appId = getInput('appId')
const installationId = getInput('installationId') || ''
const privateKey = getInput('privateKey')
.replaceAll(`"`, ``)
.replaceAll(`\\n`, `\n`)

const octokit = new Octokit({
authStrategy: createAppAuth,
auth: {
Expand Down

0 comments on commit 9c68129

Please sign in to comment.