Skip to content

Commit 2afd4f1

Browse files
bluelindenKeavon
authored andcommitted
Update the triggering comment instead of making another one for the build link
1 parent a62abac commit 2afd4f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/comment-!build-commands.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ jobs:
9797
uses: actions/github-script@v6
9898
with:
9999
script: |
100-
return (await github.rest.issues.createComment({
101-
issue_number: context.issue.number,
100+
github.rest.issues.updateComment({
101+
comment_id: ${{ github.event.comment.id }},
102102
owner: context.repo.owner,
103103
repo: context.repo.repo,
104-
body: '🚧 **Building Graphite with command** `${{ steps.build_command.outputs.command }}` ...\n\nYou can monitor the progress of this build [here](https://github.com/GraphiteEditor/Graphite/actions/runs' + context.runId + ').'
105-
})).id;
104+
body: '!build ([build link](https://github.com/GraphiteEditor/Graphite/actions/runs' + context.runId + '))'
105+
});
106106
107107
108108
- name: 🌐 Build Graphite web code
@@ -127,8 +127,8 @@ jobs:
127127
uses: actions/github-script@v6
128128
with:
129129
script: |
130-
github.rest.issues.updateComment({
131-
comment_id: ${{ steps.comment_actions_run_link.outputs.result }},
130+
github.rest.issues.createComment({
131+
issue_number: context.issue.number,
132132
owner: context.repo.owner,
133133
repo: context.repo.repo,
134134
body: '| 📦 **Build Complete for** ${{ steps.commit_info.outputs.sha }} |\n|-|\n| ${{ steps.cloudflare.outputs.url }} |'

0 commit comments

Comments
 (0)