From d6d9767e2dc84957f872a237cb37825a45da4a2f Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 14 Dec 2021 14:46:16 +0200 Subject: [PATCH] .github/workflows/pages.yml: attempt to update site If there are changes to the site after running the schema parsing script we should commit the changes. --- .github/workflows/pages.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index c9bc1bf5..3e6f8180 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -20,6 +20,16 @@ jobs: - name: Generate Hugo content run: | poetry run ./util/generate-hugo-content.py -i ./data/schema-fields.csv --clean -d + - name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + - name: Build Hugo site + run: hugo + working-directory: site + - name: Commit Hugo content + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Automated commit with site updates + file_pattern: site/* pages: runs-on: ubuntu-latest if: ${{ github.ref_name == 'main' }}