Skip to content

Commit

Permalink
Update port
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Logan <lindluni@github.com>
  • Loading branch information
lindluni committed Mar 10, 2024
1 parent e5cc5ec commit ebdc4fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {paginateRest} from '@octokit/plugin-paginate-rest'
import {throttling} from '@octokit/plugin-throttling'
import {retry} from '@octokit/plugin-retry'

const port = process.env.OSST_ACTIONS_BOT_PORT || 3000
const port = process.env.OSST_ACTIONS_BOT_PORT || process.env.PORT || 3000
const appID = process.env.OSST_ACTIONS_BOT_APP_ID
const appPrivateKey = process.env.OSST_ACTIONS_BOT_APP_PRIVATE_KEY
const appPrivateKey = Buffer.from(process.env.OSST_ACTIONS_BOT_APP_PRIVATE_KEY, 'base64').toString('utf-8')
const appSecret = process.env.OSST_ACTIONS_BOT_APP_WEBHOOK_SECRET
const requiredChecks = [
'policy-enforce-pr',
Expand Down Expand Up @@ -120,6 +120,8 @@ octokit.webhooks.on('issue_comment.created', async ({octokit, payload}) => {
if (body.includes('rerun-required-workflows')) {
console.log(`[${metadata}] Processing rerun-required-workflows`)
await processRerunRequiredWorkflows(octokit, body, owner, repo, issueNumber, actor, metadata)
} else {
console.log(`[${metadata}] Unknown command`)
}
}
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "actions-bot",
"version": "1.0.0",
"version": "1.1.0",
"description": "",
"type": "module",
"main": "index.js",
Expand Down

0 comments on commit ebdc4fc

Please sign in to comment.