Skip to content

Commit 59b8e1d

Browse files
committed
Add output to live deploy
1 parent a9f4f5a commit 59b8e1d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

bin/action.min.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93227,7 +93227,7 @@ async function run() {
9322793227
throw Error(deployment.error);
9322893228
}
9322993229
core.endGroup();
93230-
// Try to get the project id from an project alias
93230+
// ProjectId may be an alias. Try to get the real project id from .firebaserc
9323193231
const parsedProjectId = getProjectIdByAlias(projectId) || projectId;
9323293232
const hostname = target ? `${target}.web.app` : `${parsedProjectId}.web.app`;
9323393233
const url = `https://${hostname}/`;
@@ -93239,6 +93239,9 @@ async function run() {
9323993239
summary: `[${hostname}](${url})`
9324093240
}
9324193241
});
93242+
core.setOutput("urls", [url]);
93243+
core.setOutput("expire_time", undefined);
93244+
core.setOutput("details_url", url);
9324293245
return;
9324393246
}
9324493247
const channelId = getChannelId(configuredChannelId, github.context);

src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ async function run() {
115115
summary: `[${hostname}](${url})`,
116116
},
117117
});
118+
119+
setOutput("urls", [url]);
120+
setOutput("expire_time", undefined);
121+
setOutput("details_url", url);
122+
118123
return;
119124
}
120125

0 commit comments

Comments
 (0)