From 3cd5c6aed8539614ff949c4a8ac8b543e007e3f2 Mon Sep 17 00:00:00 2001 From: Ricardo <10128951+smplayer-dev@users.noreply.github.com> Date: Sat, 24 Apr 2021 13:49:56 +0200 Subject: [PATCH] Create update-release.yml --- .github/workflows/update-release.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/update-release.yml diff --git a/.github/workflows/update-release.yml b/.github/workflows/update-release.yml new file mode 100644 index 0000000..98a96d6 --- /dev/null +++ b/.github/workflows/update-release.yml @@ -0,0 +1,35 @@ +name: Modify release + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Get version from tag + id: tag_name + run: | + echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v} + shell: bash + + - name: Get Changelog Entry + id: changelog_reader + uses: mindsers/changelog-reader-action@v2 + with: + version: ${{ steps.tag_name.outputs.current_version }} + path: ./Changelog.md + + - name: Update release + id: update_release + uses: tubone24/update_release@v1.0 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + release_name: ${{ steps.changelog_reader.outputs.version }} + body: ${{ steps.changelog_reader.outputs.changes }}