From ebe405a57e94105a31650759677f4188fcae0019 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= Date: Tue, 27 Feb 2024 14:59:13 +1100 Subject: [PATCH] chore: add tidy workflow (#87) --- .github/workflows/tidy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/tidy.yml diff --git a/.github/workflows/tidy.yml b/.github/workflows/tidy.yml new file mode 100644 index 0000000..c1fe68e --- /dev/null +++ b/.github/workflows/tidy.yml @@ -0,0 +1,20 @@ +name: Tidy document +on: + workflow_dispatch: {} + push: + branches: + - main + +jobs: + tidy: + name: Tidy up + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - 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