Skip to content

Commit 84a0e52

Browse files
authored
Fix CHANGELOG generation (#5108)
1 parent e1ff68c commit 84a0e52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/reports.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ jobs:
9898
# months, at least for bi-weekly releases.
9999
for f in doc/data/*_prs.json; do
100100
for x in Algorithm Analysis Common DataFormats Detectors EventVisualisation Examples Framework Generators Steer Testing Utilities; do
101-
cat $f | jq ".repository.pullRequests.edges[].node | select(.files.edges[].node.path | test(\"$x\")) | del(.files) | select(.state == \"MERGED\" and .mergedAt >= \"${MERGED_AFTER}\")" > /tmp/$x_prs.json
102-
if [ ! X`jq -s length /tmp/$x_prs.json` = X0 ]; then
103-
cat /tmp/$x_prs.json | jq -r '"- [#\(.number)](https://github.com/AliceO2Group/AliceO2/pull/\(.number)) \(.mergedAt | split("T")[0]): \(.title) by [@\(.author.login)](https://github.com/\(.author.login))"' | sort -u >> /tmp/$x_prs.md
101+
cat $f | jq ".repository.pullRequests.edges[].node | select(.files.edges[].node.path | test(\"$x\")) | del(.files) | select(.state == \"MERGED\" and .mergedAt >= \"${MERGED_AFTER}\")" > /tmp/${x}_prs.json
102+
if [ ! X`jq -s length /tmp/${x}_prs.json` = X0 ]; then
103+
cat /tmp/${x}_prs.json | jq -r '"- [#\(.number)](https://github.com/AliceO2Group/AliceO2/pull/\(.number)) \(.mergedAt | split("T")[0]): \(.title) by [@\(.author.login)](https://github.com/\(.author.login))"' | sort -u >> /tmp/${x}_prs.md
104104
fi
105105
done
106106
done
@@ -115,7 +115,7 @@ jobs:
115115
cat << EOF >> CHANGELOG.md
116116
## Changes in $x
117117
EOF
118-
cat /tmp/$x_prs.md | sort -k3 | uniq >> CHANGELOG.md
118+
cat /tmp/${x}_prs.md | sort -k3 | uniq >> CHANGELOG.md
119119
done
120120
- name: Commit and push if changed
121121
run: |-

0 commit comments

Comments
 (0)