Skip to content

Commit 49923a0

Browse files
author
Loïc Mangeonjean
committed
ci: dry release on PR
1 parent fb41cd4 commit 49923a0

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/check_build.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,30 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 0
2628
- name: Setup Node.js
2729
uses: actions/setup-node@v1
2830
with:
2931
node-version: 16.x
3032
- name: Install dependencies
3133
run: npm ci
3234
- name: Build
33-
run: npm run build
35+
run: npm run build
36+
- name: Generate release notes preview
37+
id: build-release-notes
38+
uses: guilhermetod/[email protected]
39+
- name: Comment release notes preview
40+
if: steps.build-release-notes.outputs.releaseNotes
41+
uses: peter-evans/create-or-update-comment@v1
42+
with:
43+
issue-number: ${{ github.event.number }}
44+
body: |
45+
## 👋 Hey there!
46+
Thank you for you contribution. Below is a preview of the release notes if your PR gets merged.
47+
Please, make sure it includes all your significant changes with descriptive messages.
48+
Keep in mind that release notes are automatically generated from the commit messages according to [conventional commits](https://www.conventionalcommits.org/).
49+
50+
---
51+
52+
${{ steps.build-release-notes.outputs.releaseNotes }}

0 commit comments

Comments
 (0)