We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf1dc86 commit 3fcf979Copy full SHA for 3fcf979
.github/workflows/create-github-release.yml
@@ -8,16 +8,12 @@ on:
8
jobs:
9
create-release:
10
runs-on: ubuntu-latest
11
-
12
- permissions:
13
- contents: write
14
15
steps:
16
- - name: Checkout Code
+ - name: Checkout
17
uses: actions/checkout@v4
18
19
- - name: Create GitHub Release
20
- uses: ncipollo/release-action@v1
+ - name: Extract Release Notes
+ run: awk -v ver="${{ github.ref_name }}" '/^## / { if (p) { exit }; if ($2 == ver) { p=1; next } } p && NF' RELEASE.md > ${{ github.workspace }}-RELEASE_NOTES.txt
+ - name: Release
+ uses: softprops/action-gh-release@v2
21
with:
22
- name: Mocha ${{ github.ref_name }}
23
- bodyFile: RELEASE.md
+ body_path: ${{ github.workspace }}-RELEASE_NOTES.txt
0 commit comments