Skip to content

Commit ec1f90d

Browse files
committed
Fix release summary workflow for monthly/quarterly periods
- Fix malformed markdown generation in "Write Markdown digest" step - Enable AI-generated intros for monthly and quarterly digests - Use proper command grouping for atomic file creation - Fix HTML formatting for blog subscription badge Resolves issue where non-weekly periods would fail with bad credentials error due to malformed/empty summary.md file.
1 parent 5c84b35 commit ec1f90d

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

.github/workflows/reporting-release-summary.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,20 +141,25 @@ jobs:
141141
- name: "Write Markdown digest"
142142
shell: bash
143143
run: |
144-
145-
echo "" >> summary.md
146-
echo "## " >> summary.md
144+
{
145+
echo "## Changes"
146+
echo ""
147147
if [[ ! -s out/pr-digest.tsv ]]; then
148-
echo "_No merged PRs in this period._" >> summary.md
148+
echo "_No merged PRs in this period._"
149149
else
150150
while IFS=$'\t' read -r title author repo num pr_url; do
151-
echo "* ${title}. by @${author} in [${repo}#${num}](${pr_url})" >> summary.md
151+
echo "* ${title}. by @${author} in [${repo}#${num}](${pr_url})"
152152
done < out/pr-digest.tsv
153153
fi
154-
echo "# " >> summary.md
155-
echo "<a href='https://blog.armbian.com/#/portal/signup' target='_blank'>
156-
<img src='https://img.shields.io/badge/Subscribe-blog.armbian.com-red?style=for-the-badge&logo=rss' alt='Subscribe to Blog'/></a>" >> summary.md
157-
echo "<p><br>Stay up to date with the latest Armbian news, development highlights, and tips — delivered straight to your inbox." >> summary.md
154+
echo ""
155+
echo "---"
156+
echo ""
157+
echo "<a href='https://blog.armbian.com/#/portal/signup' target='_blank'>"
158+
echo " <img src='https://img.shields.io/badge/Subscribe-blog.armbian.com-red?style=for-the-badge&logo=rss' alt='Subscribe to Blog'/>"
159+
echo "</a>"
160+
echo ""
161+
echo "<p>Stay up to date with the latest Armbian news, development highlights, and tips — delivered straight to your inbox.</p>"
162+
} > summary.md
158163
159164
- name: Upload raw data (artifacts)
160165
uses: actions/upload-artifact@v6
@@ -188,7 +193,6 @@ jobs:
188193
echo "VERSION_OVERRIDE=${VERSION}" >> "$GITHUB_ENV"
189194
190195
- name: "Write a short journalistic intro with AI"
191-
if: ${{ env.PERIOD == 'weekly' }}
192196
run: |
193197
set -euo pipefail
194198
python3 <<'PY'

0 commit comments

Comments
 (0)