Skip to content

Commit a5345e6

Browse files
authored
Add update-release.yml
1 parent 69bda6d commit a5345e6

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Modify release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Get version from tag
16+
id: tag_name
17+
run: |
18+
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
19+
shell: bash
20+
21+
- name: Get Changelog Entry
22+
id: changelog_reader
23+
uses: mindsers/changelog-reader-action@v2
24+
with:
25+
version: ${{ steps.tag_name.outputs.current_version }}
26+
path: ./Changelog.md
27+
28+
- name: Update release
29+
id: update_release
30+
uses: tubone24/update_release@v1.0
31+
env:
32+
GITHUB_TOKEN: ${{ github.token }}
33+
with:
34+
release_name: ${{ steps.changelog_reader.outputs.version }}
35+
body: ${{ steps.changelog_reader.outputs.changes }}

0 commit comments

Comments
 (0)