Skip to content

Commit

Permalink
feat: remove discover on sync
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsoderberg committed Jun 12, 2024
1 parent eee6248 commit bdf8d11
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as core from '@actions/core'
import axios from 'axios'
import { createHmac } from 'crypto'

/**
* The main function for the action.
Expand Down Expand Up @@ -39,20 +38,10 @@ export async function syncState(
novuApiKey: string,
backendUrl: string
): Promise<object> {
const timestamp = Date.now()
const discover = await axios.get(`${echoUrl}?action=discover`, {
headers: {
'x-novu-signature': `t=${timestamp},v1=${createHmac('sha256', novuApiKey)
.update(`${timestamp}.${JSON.stringify({})}`)
.digest('hex')}`
}
})

const sync = await axios.post(
`${backendUrl}/v1/echo/sync?source=githubAction`,
{
chimeraUrl: echoUrl,

Check failure on line 44 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Delete `,`
workflows: discover.data.workflows
},
{
headers: {
Expand Down

0 comments on commit bdf8d11

Please sign in to comment.