Skip to content

Commit fe262cb

Browse files
committed
fixes
1 parent 8918cd2 commit fe262cb

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/deploy-to-control-plane-review.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,26 +60,20 @@ jobs:
6060
uses: actions/github-script@v7
6161
with:
6262
script: |
63-
const createComment = async (message) => {
63+
async function createComment(message) {
6464
await github.rest.issues.createComment({
6565
issue_number: context.issue.number || context.payload.pull_request.number,
6666
owner: context.repo.owner,
6767
repo: context.repo.repo,
6868
body: message
6969
});
70-
};
70+
}
7171
72-
core.exportVariable('createComment', createComment);
73-
74-
- name: Notify deployment start
75-
uses: actions/github-script@v7
76-
with:
77-
script: |
7872
const message = `🚀 Starting new deployment for commit: ${context.sha.substring(0, 7)}
7973
${context.payload.commits ? `\nChanges: ${context.payload.commits[0].message}` : ''}
8074
Status: ${{ env.STATUS_URL }}`;
8175
82-
await eval(process.env.createComment)(message);
76+
await createComment(message);
8377
8478
- name: Create GitHub Deployment
8579
id: create-deployment

0 commit comments

Comments
 (0)