Skip to content

Commit

Permalink
fix: better deploy github summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Jan 26, 2024
1 parent 6fd8fea commit 4a9f714
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/deploy/deployGae.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ export async function deployGae(opt: DeployGaeOptions = {}): Promise<void> {
gaeVersion,
})

appendToGithubSummary(`[versionUrl](${versionUrl})`)

await pRetry(
async () => {
try {
Expand Down Expand Up @@ -75,6 +73,8 @@ export async function deployGae(opt: DeployGaeOptions = {}): Promise<void> {
await deployHealthCheck(serviceUrl, opt)
}

appendToGithubSummary(`Deployed ${serviceUrl}`)

// Logs
if (logOnSuccess) {
logs(gaeProject, gaeService, gaeVersion)
Expand Down Expand Up @@ -105,6 +105,8 @@ export async function undeployGae(branch: string): Promise<void> {
[],
{ shell: true },
)

appendToGithubSummary(`removed ${gaeProject}/${gaeService}/${gaeVersion}`)
}

function logs(gaeProject: string, gaeService: string, gaeVersion: string): void {
Expand Down

0 comments on commit 4a9f714

Please sign in to comment.