From f4e28fe8092a19ffe18e194449e696bc4c4a5a38 Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Mon, 14 Jun 2021 12:56:22 +0200 Subject: [PATCH] .github/workflows: fix non-idempotent ronn email mangling --- .github/workflows/ronn.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ronn.yml b/.github/workflows/ronn.yml index 15cfb43..653857e 100644 --- a/.github/workflows/ronn.yml +++ b/.github/workflows/ronn.yml @@ -15,6 +15,15 @@ jobs: - name: Run ronn uses: ./.github/workflows/ronn id: ronn + - name: Undo email mangling + # rdiscount randomizes the output for no good reason, which causes + # changes to always get committed. Sigh. + # https://github.com/davidfstr/rdiscount/blob/6b1471ec3/ext/generate.c#L781-L795 + run: |- + for f in doc/*.html; do + awk '/Filippo Valsorda/ { $0 = "

Filippo Valsorda age@filippo.io

" } { print }' "$f" > "$f.tmp" + mv "$f.tmp" "$f" + done - name: Commit and push if changed run: |- git config user.name "GitHub Actions"