File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments