Update package_repo.yml

This commit is contained in:
Rhys Yang
2023-11-01 04:32:42 +08:00
committed by GitHub
parent 0a5bedf412
commit aff17ccbf4
+4 -1
View File
@@ -36,7 +36,10 @@ jobs:
- name: Extract Section
id: extract_section
run: sed -n '/## Installation/,/## Usage/ {/## Usage/!p;}' README.md > installation.md
run: |
tag_name="${{ env.TAG_NAME }}"
sed -n "/## $tag_name/,/## /p" CHANGELOG.md | sed '$d' >> installation.md
sed -n '/## Installation/,/## Usage/ {/## Usage/!p;}' README.md >> installation.md
- name: Create GitHub Release
uses: softprops/action-gh-release@v1