From 2708e6484ec4b2291827bd3630ef5ce45e960298 Mon Sep 17 00:00:00 2001 From: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> Date: Thu, 25 May 2023 17:04:07 -0400 Subject: [PATCH] Use auto-generated release notes Signed-off-by: Dale Haiducek <19750917+dhaiducek@users.noreply.github.com> --- .github/workflows/go-release.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index dec02f01..718ca568 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -6,7 +6,6 @@ on: - 'v*.*.*' env: - TAG: ${{ github.ref_name }} RELEASE_VERSION: ${{ github.ref_name }} defaults: run: @@ -36,11 +35,11 @@ jobs: - name: generate changelog run: | echo "# config-policy-controller $RELEASE_VERSION" > /home/runner/work/changelog.txt - echo "- See the [CHANGELOG](https://github.com/open-cluster-management-io/config-policy-controller/blob/main/CHANGELOG/CHANGELOG-${RELEASE_VERSION}.md) for more details." >> /home/runner/work/changelog.txt echo "- The released image is quay.io/open-cluster-management/config-policy-controller:$RELEASE_VERSION" >> /home/runner/work/changelog.txt - name: publish release - uses: softprops/action-gh-release@v0.1.5 - env: - GITHUB_TOKEN: ${{ github.token }} + uses: softprops/action-gh-release@v0.1.15 with: body_path: /home/runner/work/changelog.txt + generate_release_notes: true + draft: true + prerelease: false