Skip to content

Commit

Permalink
Fix workspaceId
Browse files Browse the repository at this point in the history
  • Loading branch information
twistedpair committed Jan 10, 2025
1 parent d7a6a82 commit 5d86305
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pr-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
with:
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
environment-id: I9tfo2dWd7WSigXcO91feA-e
# Intentionally trigger deprecation warning
uri: 'https://sandbox.mabl.com'
app-url: 'https://storage.googleapis.com/public-test-pages/uptime/canary.html'
browser-types: |
chrome
plan-labels: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/push-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
with:
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
environment-id: I9tfo2dWd7WSigXcO91feA-e
# Intentionally trigger deprecation warning
uri: 'https://sandbox.mabl.com'
app-url: 'https://storage.googleapis.com/public-test-pages/uptime/canary.html'
browser-types: |
Expand Down
1 change: 1 addition & 0 deletions src/entities/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export interface Application {
last_updated_time: number;
last_updated_by_id: string;
organization_id: string;
workspace_id: string;
name: string;
}
3 changes: 2 additions & 1 deletion src/entities/Environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export interface Environment {
last_updated_time: number;
last_updated_by_id: string;
organization_id: string;
workspace_id: string;
name: string;
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export async function run(enableFailureExitCodes = true): Promise<void> {
return; // exit
}

console.log('here it is [%j]', appOrEnv);
const effectiveWorkspaceId = appOrEnv.workspace_id ?? appOrEnv.organization_id;

const outputLink = `${baseAppUrl}/workspaces/${appOrEnv.organization_id}/events/${deployment.id}`;
core.info(`Deployment triggered. View output at: ${outputLink}`);
Expand Down

0 comments on commit 5d86305

Please sign in to comment.