Skip to content

Commit

Permalink
fix(actions): use project id secret in memory analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Dec 10, 2024
1 parent a58301a commit e67a3d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/actions/odd-resource-analysis/action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ async function run() {
try {
const mixpanelUser = core.getInput('mixpanel-user', { required: true })
const mixpanelSecret = core.getInput('mixpanel-secret', { required: true })
const mixpanelProjectId = core.getInput('mixpanel-project-id', {
required: true,
})
const mixpanelProjectId = parseInt(
core.getInput('mixpanel-project-id', {
required: true,
})
)
const previousVersionCount = parseInt(
core.getInput('previous-version-count') || '2'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function getMixpanelResourceMonitorDataFor({
where,
}) {
const params = new URLSearchParams({
project_id: parseInt(projectId),
project_id: projectId,
from_date: fromDate,
to_date: toDate,
event: '["resourceMonitorReport"]',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/odd-memory-usage-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
with:
mixpanel-user: ${{ secrets.MIXPANEL_INGEST_USER }}
mixpanel-secret: ${{ secrets.MIXPANEL_INGEST_SECRET }}
mixpanel-project-id: ${{ secrets.OT_APP_MIXPANEL_ID }}
mixpanel-project-id: ${{ secrets.OT_MIXPANEL_PROJECT_ID }}
previous-version-count: '2'

0 comments on commit e67a3d7

Please sign in to comment.