From d46617665c74e60e61328b37b11444dd7eb5318e Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 8 Aug 2020 15:44:45 +0900 Subject: [PATCH] fix(init): improve GitHub Release body (#665) --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 115346b3..e6324e74 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,9 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + id: get_version - uses: softprops/action-gh-release@v1 with: body: | - For details, see the [changelog](https://github.com/${{ github.repository }}/blob/${{ github.sha }}/CHANGELOG.md). + See the [changelog](https://github.com/${{ github.repository }}/blob/${{ steps.get_version.outputs.VERSION }}/CHANGELOG.md) for more details. env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}