Skip to content

Commit

Permalink
fix: turn the aggregate into an object (#88)
Browse files Browse the repository at this point in the history
* fix: turn the aggregate into an object

* release v1.0.12

* fix: update releaser too
  • Loading branch information
galargh authored Sep 17, 2024
1 parent bcdbc91 commit 61bc2a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,16 @@ jobs:
- id: aggregate
run: |
echo "json<<EOF" >> $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
6 changes: 4 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,16 @@ jobs:
- id: aggregate
run: |
echo "json<<EOF" >> $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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61bc2a9

Please sign in to comment.