From 8621e4b53f3cc17f44cb45eda33c9089ba854a64 Mon Sep 17 00:00:00 2001 From: tpkowastaken Date: Mon, 20 Nov 2023 23:11:37 +0100 Subject: [PATCH] fix(dev): workflow issues hopefully fixed --- .github/workflows/pub-publish.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pub-publish.yml b/.github/workflows/pub-publish.yml index f1da453..9295178 100644 --- a/.github/workflows/pub-publish.yml +++ b/.github/workflows/pub-publish.yml @@ -24,14 +24,12 @@ jobs: - name: Extract release notes id: extract-release-notes run: | - # Extract contents from the top until the second header - FILE_CONTENTS=$(sed -n '/^## /q;p' CHANGELOG.md) + FILE_CONTENTS=$(awk '/^## /{if(++n==2)exit} {print}' CHANGELOG.md) echo "::set-output name=contents::${FILE_CONTENTS}" - name: Update Release Description uses: softprops/action-gh-release@v1 with: - files: "" token: ${{ secrets.GITHUB_TOKEN }} body: | ${{ steps.extract-release-notes.outputs.contents }}