From 1d67c323515ae3b8c9d6d86e50c0bfc780013ba1 Mon Sep 17 00:00:00 2001
From: Quinn Casey <quinn@quinncasey.com>
Date: Sat, 5 Mar 2022 14:49:52 -0800
Subject: [PATCH] [skip ci] Add variable body to fix incorrect changelog

---
 .github/workflows/ci.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 72b35ad1f..4b02bb66a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -297,9 +297,11 @@ jobs:
           if [[ $GITHUB_REF == refs/tags/ngx-* ]]; then
             echo ::set-output name=version::${GITHUB_REF#refs/tags/ngx-}
             echo ::set-output name=prerelease::false
+            echo ::set-output name=body::"For a complete list of changes, see the changelog at https://paperless-ngx.readthedocs.io/en/latest/changelog.html"
           elif [[ $GITHUB_REF == refs/tags/beta-* ]]; then
             echo ::set-output name=version::${GITHUB_REF#refs/tags/beta-}
             echo ::set-output name=prerelease::true
+            echo ::set-output name=body::"For a complete list of changes, see the changelog at https://github.com/paperless-ngx/paperless-ngx/blob/beta/docs/changelog.rst"
           fi
       -
         name: Create release
@@ -312,8 +314,7 @@ jobs:
           release_name: Paperless-ngx ${{ steps.get_version.outputs.version }}
           draft: false
           prerelease: ${{ steps.get_version.outputs.prerelease }}
-          body: |
-            For a complete list of changes, see the changelog at https://paperless-ngx.readthedocs.io/en/latest/changelog.html.
+          body: ${{ steps.get_version.outputs.body }}
       -
         name: Upload release archive
         id: upload-release-asset