From 61bc2a929b1a896da9559d6c4b14c574425da364 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Tue, 17 Sep 2024 09:58:35 +0200 Subject: [PATCH] fix: turn the aggregate into an object (#88) * fix: turn the aggregate into an object * release v1.0.12 * fix: update releaser too --- .github/workflows/release-check.yml | 6 ++++-- .github/workflows/releaser.yml | 6 ++++-- CHANGELOG.md | 4 ++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-check.yml b/.github/workflows/release-check.yml index b5fc189..3c16dec 100644 --- a/.github/workflows/release-check.yml +++ b/.github/workflows/release-check.yml @@ -346,14 +346,16 @@ jobs: - id: aggregate run: | echo "json<> $GITHUB_OUTPUT - echo "[" | tee -a $GITHUB_OUTPUT + echo "{" | tee -a $GITHUB_OUTPUT for d in *; do f="$d/release.json" if [[ -d "$d" && -f "$f" ]]; then echo "$comma" | tee -a $GITHUB_OUTPUT + jq .source "$f" | tee -a $GITHUB_OUTPUT + echo ":" | tee -a $GITHUB_OUTPUT jq . "$f" | tee -a $GITHUB_OUTPUT comma="," fi done - echo "]" | tee -a $GITHUB_OUTPUT + echo "}" | tee -a $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index dafef75..5b61ec2 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -185,14 +185,16 @@ jobs: - id: aggregate run: | echo "json<> $GITHUB_OUTPUT - echo "[" | tee -a $GITHUB_OUTPUT + echo "{" | tee -a $GITHUB_OUTPUT for d in *; do f="$d/release.json" if [[ -d "$d" && -f "$f" ]]; then echo "$comma" | tee -a $GITHUB_OUTPUT + jq .source "$f" | tee -a $GITHUB_OUTPUT + echo ":" | tee -a $GITHUB_OUTPUT jq . "$f" | tee -a $GITHUB_OUTPUT comma="," fi done - echo "]" | tee -a $GITHUB_OUTPUT + echo "}" | tee -a $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT diff --git a/CHANGELOG.md b/CHANGELOG.md index 7879cb1..1571530 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [1.0.12] - 2024-09-17 +### Changed +- the release-checker outputs an object instead of an array as intended + ## [1.0.11] - 2024-08-23 ### Changed - updated dependencies in prep for Go 1.23 support