Skip to content

Commit aa7ff13

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

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
@@ -54,6 +54,18 @@ jobs:
5454
git rev-parse --abbrev-ref HEAD | grep master > /dev/null || export INDEX_HTML_HEAD_REPLACEMENT=""
5555
sed -i "s|<!-- INDEX_HTML_HEAD_REPLACEMENT -->|$INDEX_HTML_HEAD_REPLACEMENT|" frontend/index.html
5656
57+
- name: 💬 Comment build link
58+
if: github.event_name == 'push'
59+
uses: actions/github-script@v6
60+
with:
61+
script: |
62+
github.rest.repos.createCommitComment({
63+
owner: context.repo.owner,
64+
repo: context.repo.repo,
65+
commit_sha: context.sha,
66+
body: '| 📦 **Build Complete for** ${{ github.sha }} |\n|-|\n| - |'
67+
})
68+
5769
- name: 🌐 Build Graphite web code
5870
env:
5971
NODE_ENV: production

0 commit comments

Comments
 (0)