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 db663d5 commit a88dfe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/mkreadme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ jobs:
python3 -m pip install jinja-cli
- name: Check out code for the container build
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if README.md has changed
id: readme-changed
run: |
if ! git --no-pager diff --name-only --quiet --diff-filter=AM HEAD^ -- hyakvnc .build/README.j2.md .github/workflows/mkreadme.yml; then
if ! git --no-pager diff --name-only --quiet --diff-filter=AM ${{ github.event.before }} ${{ github.event.after }} -- hyakvnc .build/README.j2.md .github/workflows/mkreadme.yml; then
gh run cancel ${{ github.run_id }}
gh run watch ${{ github.run_id }}
fi
Expand Down

0 comments on commit a88dfe9

Please sign in to comment.