🔖 Release v2.8.4
This commit is contained in:
19
.github/workflows/auto-create-release.yml
vendored
19
.github/workflows/auto-create-release.yml
vendored
@@ -11,23 +11,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
- name: Extract body from changelog
|
- name: Extract body from changelog
|
||||||
id: extract
|
|
||||||
run: |
|
run: |
|
||||||
NEW_VERSION=$(echo '${{ github.ref }}' | sed 's/refs\/tags\/v//')
|
NEW_VERSION=$(echo '${{ github.ref }}' | sed 's/refs\/tags\/v//')
|
||||||
echo $NEW_VERSION
|
echo $NEW_VERSION
|
||||||
RELEASE_BODY=$(sed -n -e "/## ${NEW_VERSION}/,/<a/ p" ./CHANGELOG.md | sed -e '2d;$d')
|
sed -n -e "/## ${NEW_VERSION}/,/<a/ p" ./CHANGELOG.md | sed -e '1,2d' | sed -e '$d' | sed -e '$d' > extractedBody.md
|
||||||
echo "::set-output name=body::${RELEASE_BODY}"
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
uses: ncipollo/release-action@v1
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
release_name: ${{ github.ref }}
|
bodyFile: 'extractedBody.md'
|
||||||
body: |
|
|
||||||
${{ steps.extract.outputs.body }}
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
|
|||||||
Reference in New Issue
Block a user