diff --git a/.github/workflows/reporting-release-summary.yml b/.github/workflows/reporting-release-summary.yml index 39984d6ef..9c7b00057 100644 --- a/.github/workflows/reporting-release-summary.yml +++ b/.github/workflows/reporting-release-summary.yml @@ -156,6 +156,276 @@ jobs: Subscribe to Blog" >> summary.md echo "


Stay up to date with the latest Armbian news, development highlights, and tips — delivered straight to your inbox." >> summary.md + - name: "Generate HTML digest table" + shell: bash + run: | + cat > out/digest.html <<'HTMLEOF' + + + + + + ${LABEL} - Armbian PR Digest + + + +

+
+

${LABEL}

+

Armbian Pull Request Digest

+
+
📅 Period: ${PERIOD}
+
📅 From: ${SINCE_UTC}
+
📅 Until: ${UNTIL_UTC}
+
+
+ HTMLEOF + + # Generate table rows + if [[ ! -s out/pr-digest.tsv ]]; then + cat >> out/digest.html <<'EOF' +
+
+
📭
+

No merged PRs in this period.

+
+
+ EOF + else + cat >> out/digest.html <<'EOF' +
+ + + + + + + + + + + EOF + + while IFS=$'\t' read -r title author repo num pr_url; do + repo_name="${repo##*/}" + cat >> out/digest.html < + + + + + + EOF + done < out/pr-digest.tsv + + cat >> out/digest.html <<'EOF' + +
Pull RequestAuthorRepositoryLink
+
${title}
+
+ ${repo_name} +
+
@${author}${repo_name}View PR #${num}
+
+ EOF + fi + + cat >> out/digest.html <<'EOF' + +
+ + + HTMLEOF + - name: Upload raw data (artifacts) uses: actions/upload-artifact@v6 with: