Skip to content

Commit 5d86305

Browse files
committed
Fix workspaceId
1 parent d7a6a82 commit 5d86305

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

.github/workflows/pr-workflow.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
with:
3333
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
3434
environment-id: I9tfo2dWd7WSigXcO91feA-e
35+
# Intentionally trigger deprecation warning
36+
uri: 'https://sandbox.mabl.com'
37+
app-url: 'https://storage.googleapis.com/public-test-pages/uptime/canary.html'
3538
browser-types: |
3639
chrome
3740
plan-labels: |

.github/workflows/push-workflow.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
with:
3434
application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a
3535
environment-id: I9tfo2dWd7WSigXcO91feA-e
36+
# Intentionally trigger deprecation warning
3637
uri: 'https://sandbox.mabl.com'
3738
app-url: 'https://storage.googleapis.com/public-test-pages/uptime/canary.html'
3839
browser-types: |

src/entities/Application.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export interface Application {
55
last_updated_time: number;
66
last_updated_by_id: string;
77
organization_id: string;
8+
workspace_id: string;
89
name: string;
910
}

src/entities/Environment.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ export interface Environment {
55
last_updated_time: number;
66
last_updated_by_id: string;
77
organization_id: string;
8+
workspace_id: string;
89
name: string;
9-
}
10+
}

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export async function run(enableFailureExitCodes = true): Promise<void> {
183183
return; // exit
184184
}
185185

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

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

0 commit comments

Comments
 (0)