From 2b887df3f9547a37b2d7a2e3bdf2e1b3431bcbd8 Mon Sep 17 00:00:00 2001 From: Jonas Scharpf Date: Sat, 12 Oct 2024 15:02:25 +0200 Subject: [PATCH] back to good old cat for latest description --- .github/workflows/release.yml | 3 ++- .github/workflows/test-release.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0bc2bc..b225bb2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,9 +38,10 @@ jobs: changelog changelog.md \ --snippets=.snippets \ --dry-run > latest-entry.json + jq -r ".content" latest-entry.json > latest_description.txt echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV echo 'LATEST_DESCRIPTION<<"EOT"' >> $GITHUB_OUTPUT - jq -r ".content" latest-entry.json >> $GITHUB_OUTPUT + cat latest_description.txt >> $GITHUB_OUTPUT echo '"EOT"' >> $GITHUB_OUTPUT echo "latest_version=$(jq -r '.version' latest-entry.json)" >> $GITHUB_ENV - name: Update changelog with snippets diff --git a/.github/workflows/test-release.yaml b/.github/workflows/test-release.yaml index 704a210..8b06d8f 100644 --- a/.github/workflows/test-release.yaml +++ b/.github/workflows/test-release.yaml @@ -35,9 +35,10 @@ jobs: changelog changelog.md \ --snippets=.snippets \ --dry-run > latest-entry.json + jq -r ".content" latest-entry.json > latest_description.txt echo "CHANGELOG_JSON=$(jq -c . < latest-entry.json)" >> $GITHUB_ENV echo 'LATEST_DESCRIPTION<<"EOT"' >> $GITHUB_OUTPUT - jq -r ".content" latest-entry.json >> $GITHUB_OUTPUT + cat latest_description.txt >> $GITHUB_OUTPUT echo '"EOT"' >> $GITHUB_OUTPUT echo "latest_version=$(jq -r '.version' latest-entry.json)" >> $GITHUB_ENV - name: Update changelog with snippets