From 5c1b69cc0f40fbe852539d4cf3eaf39f93134918 Mon Sep 17 00:00:00 2001 From: jakub-nt <175944085+jakub-nt@users.noreply.github.com> Date: Wed, 13 Aug 2025 17:13:30 +0200 Subject: [PATCH] Explicitly make a Git commit in the man page generator GHA For some reason, the automatic commit seems to add a co-author and thus fails the GPG verification; also, this improves the commit message. Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com> --- .github/workflows/update-cfbs-manual.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-cfbs-manual.yml b/.github/workflows/update-cfbs-manual.yml index 4b8f3c5f..93d57e02 100644 --- a/.github/workflows/update-cfbs-manual.yml +++ b/.github/workflows/update-cfbs-manual.yml @@ -37,9 +37,12 @@ jobs: echo "MANPAGE_HASH_BEFORE=$(tail -n +2 cfbs/cfbs.1 | sha256sum)">> $GITHUB_ENV - name: Run manual generator run: export PYTHONPATH=. && python3 cfbs/man_generator.py - - name: Save commit hash after + - name: Save manpage hash after run: | echo "MANPAGE_HASH_AFTER=$(tail -n +2 cfbs/cfbs.1 | sha256sum)">> $GITHUB_ENV + - name: Create Git commit + if: env.MANPAGE_HASH_BEFORE != env.MANPAGE_HASH_AFTER + run: git commit -m "Regenerated man page" - name: Create Pull Request if: env.MANPAGE_HASH_BEFORE != env.MANPAGE_HASH_AFTER uses: cfengine/create-pull-request@v6