Skip to content

Commit 824a328

Browse files
committed
Make CI comment build links on its commits in master
1 parent e11b57a commit 824a328

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build-dev-and-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,18 @@ jobs:
7272
projectName: graphite-dev
7373
directory: frontend/dist
7474

75+
- name: 💬 Comment build link
76+
if: github.event_name == 'push'
77+
uses: actions/github-script@v6
78+
with:
79+
script: |
80+
github.rest.repos.createCommitComment({
81+
owner: github.repo.owner,
82+
repo: github.repo.repo,
83+
commit_sha: github.sha,
84+
body: '| 📦 **Build Complete for** ${{ github.sha }} |\n|-|\n| ${{ steps.cloudflare.outputs.url }} |'
85+
})
86+
7587
- name: 👕 Lint Graphite web formatting
7688
env:
7789
NODE_ENV: production

0 commit comments

Comments
 (0)