Skip to content

Commit

Permalink
Put README generation in GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
maouw committed Oct 24, 2023
1 parent 3468500 commit df705b6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/mkreadme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/^.*<!-- markdownlint-disable-file -->.*$//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

0 comments on commit df705b6

Please sign in to comment.