From df03f46007048f8c7f5e702ca2a4cf006cee0e72 Mon Sep 17 00:00:00 2001 From: Marcos Caceres Date: Sat, 30 Mar 2024 11:52:22 +1100 Subject: [PATCH] chore(tidy.yml): only on index.html changes --- .github/workflows/tidy.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml index f67b264..f7d3f28 100644 --- a/.github/workflows/tidy.yml +++ b/.github/workflows/tidy.yml @@ -1,20 +1,22 @@ name: Tidy document on: - workflow_dispatch: {} - push: - branches: - - gh-pages + workflow_dispatch: {} + push: + branches: + - gh-pages + paths: + - index.html jobs: - tidy: - name: Tidy up - runs-on: macos-latest - steps: - - uses: actions/checkout@v4 - - run: brew install tidy-html5 - - run: tidy -config tidyconfig.txt -o index.html index.html - - uses: peter-evans/create-pull-request@v6 - with: - title: "Tidied up document using tidy-html5" - commit-message: "chore: tidy up index.html" - branch: html-tidy + tidy: + name: Tidy up + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - run: brew install tidy-html5 + - run: tidy -config tidyconfig.txt -o index.html index.html + - uses: peter-evans/create-pull-request@v6 + with: + title: "Tidied up document using tidy-html5" + commit-message: "chore: tidy up index.html" + branch: html-tidy