From a88dfe99b723295c04540f817876f1532a84c78e Mon Sep 17 00:00:00 2001 From: Altan Orhon Date: Tue, 24 Oct 2023 16:09:56 -0700 Subject: [PATCH] Put README generation in GitHub Action --- .github/workflows/mkreadme.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mkreadme.yml b/.github/workflows/mkreadme.yml index f60fa3b..04dcc97 100644 --- a/.github/workflows/mkreadme.yml +++ b/.github/workflows/mkreadme.yml @@ -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