From 8eb84e148a9e4d61ef69b2d554ffd6b1b5cc55c8 Mon Sep 17 00:00:00 2001 From: Ryan Caezar Itang Date: Sun, 29 Jan 2023 15:30:46 +0800 Subject: [PATCH] Add release notes link in the releases --- .github/workflows/nightly.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 11db51f..3283c50 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -79,12 +79,18 @@ jobs: run_id: ${{ github.run_id }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - id: extract_major_version + run: | + MAJOR_VERSION=$(echo ${{ needs.checkver.outputs.new_version }} | cut -d. -f1) + echo "major_version=$MAJOR_VERSION" >> $GITHUB_OUTPUT - uses: softprops/action-gh-release@v1 with: - files: | - *.zip - body: Built with GitHub Actions at ${{ fromJson(steps.get_workflow_runtime.outputs.data).updated_at }} + files: '*.zip' + body: | + Built with GitHub Actions at ${{ fromJson(steps.get_workflow_runtime.outputs.data).updated_at }} + + Release notes can be found [here](http://greenwoodsoftware.com/less/news.${{ steps.extract_major_version.outputs.major_version }}.html). tag_name: less-v${{ needs.checkver.outputs.new_version }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}