From 858ac5cea8b8e069bbd20aff29f092013293d43e Mon Sep 17 00:00:00 2001 From: RainOrigami Date: Fri, 8 Sep 2023 12:11:40 +0200 Subject: [PATCH] I hate this why is this the most complicated thing in existence --- .github/workflows/build-publish.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 38b71c7..f03fd34 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -19,9 +19,7 @@ jobs: - name: Extract Tag Name id: extract-tag-name run: | - echo "{tag_name}={$(basename ${{ github.ref }})}" >> $GITHUB_OUTPUT - echo $(basename ${{ github.ref }}) - echo $GITHUB_OUTPUT + echo "tag_name=$(basename ${{ github.ref }})" >> $GITHUB_OUTPUT - name: Checkout code uses: actions/checkout@v4 @@ -54,7 +52,7 @@ jobs: tag_name="${{ steps.extract-tag-name.outputs.tag_name }}" previous_tag=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1)) changelog=$(git log --pretty=format:"- %s" $previous_tag..$tag_name) - echo "{changelog}={$changelog}" >> $GITHUB_OUTPUT + echo "$changelog" >> ${{ github.workspace }}-CHANGELOG.txt - name: Publish Release Assets id: publish-assets @@ -64,7 +62,7 @@ jobs: ${{ steps.extract-tag-name.outputs.tag_name }}.zip nuget/*.nupkg tag_name: ${{ steps.extract-tag-name.outputs.tag_name }} - body: ${{ steps.generate-changelog.outputs.changelog }} + body_path: ${{ github.workspace }}-CHANGELOG.txt env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}