Skip to content

Commit 0d7ea9c

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,18 @@ jobs:
6161
cd frontend
6262
mold -run npm run build
6363
64+
- name: 💬 Comment build link
65+
if: github.event_name == 'push'
66+
uses: actions/github-script@v6
67+
with:
68+
script: |
69+
github.rest.repos.createCommitComment({
70+
owner: context.repo.owner,
71+
repo: context.repo.repo,
72+
commit_sha: github.sha,
73+
body: '| 📦 **Build Complete for** ${{ github.sha }} |\n|-|\n| - |'
74+
})
75+
6476
- name: 📤 Publish to Cloudflare Pages
6577
id: cloudflare
6678
uses: cloudflare/pages-action@1

0 commit comments

Comments
 (0)