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:
60
60
uses : actions/github-script@v7
61
61
with :
62
62
script : |
63
- const createComment = async (message) => {
63
+ async function createComment (message) {
64
64
await github.rest.issues.createComment({
65
65
issue_number: context.issue.number || context.payload.pull_request.number,
66
66
owner: context.repo.owner,
67
67
repo: context.repo.repo,
68
68
body: message
69
69
});
70
- };
70
+ }
71
71
72
- core.exportVariable('createComment', createComment);
73
-
74
- - name : Notify deployment start
75
- uses : actions/github-script@v7
76
- with :
77
- script : |
78
72
const message = `🚀 Starting new deployment for commit: ${context.sha.substring(0, 7)}
79
73
${context.payload.commits ? `\nChanges: ${context.payload.commits[0].message}` : ''}
80
74
Status: ${{ env.STATUS_URL }}`;
81
75
82
- await eval(process.env. createComment) (message);
76
+ await createComment(message);
83
77
84
78
- name : Create GitHub Deployment
85
79
id : create-deployment
You can’t perform that action at this time.
0 commit comments