Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 committed Jan 24, 2025
1 parent 8041a01 commit b03b6d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy-to-control-plane-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ jobs:
required_contexts: []
});
const runUrl = `${process.env.GITHUB_SERVER_URL}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}/job/${process.env.GITHUB_JOB}?pr=${context.issue.number || context.payload.pull_request.number}`;
// Create initial comment
const comment = await github.rest.issues.createComment({
issue_number: context.issue.number || context.payload.pull_request.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `🚀 Starting deployment for ${context.sha.substring(0, 7)}\nDeployment ID: ${deployment.data.id}\nGitHub Actions Run: ${runUrl}`
body: `🚀 Starting deployment for ${context.sha.substring(0, 7)}
GitHub Actions Run: ${process.env.GITHUB_SERVER_URL}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}/job/${process.env.GITHUB_JOB_ID}?pr=${context.issue.number || context.payload.pull_request.number}`
});

// Set deployment status to in_progress
Expand Down

0 comments on commit b03b6d7

Please sign in to comment.