From df705b691ba805586909acfa5331f7d731bb7fa9 Mon Sep 17 00:00:00 2001 From: Altan Orhon Date: Tue, 24 Oct 2023 15:39:31 -0700 Subject: [PATCH] Put README generation in GitHub Action --- .github/workflows/mkreadme.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/mkreadme.yml b/.github/workflows/mkreadme.yml index 6baf030..9a1458a 100644 --- a/.github/workflows/mkreadme.yml +++ b/.github/workflows/mkreadme.yml @@ -24,18 +24,13 @@ jobs: pushd .build/ for x in create status show stop config install; do ../hyakvnc help "$x" | sed -E '1 s/(.*)/\n### \1\n/; 2 s/^$/```text/' | pr -e4 -t && echo '```'; done > usage.inc.md popd - - name: Assemble README.md + - name: Create and push README.md run: | pushd .build/ jinja -D github.repository "${{ github.repository }}" -D github.ref_name "${{ github.ref_name }}" README.j2.md | sed 's/^.*.*$//g' > ../README.md popd - - name: Set up Git user - run: | git config --local user.email "${{ github.event.sender.id }}+${{ github.event.sender.login }}@users.noreply.github.com" git config --local user.name ${{ github.event.sender.login }} - - name: Add, commit, and push README.md - run: | git add README.md git commit -am "Update README.md" git push -