Skip to content

Commit

Permalink
chore(tidy.yml): only on index.html changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Mar 30, 2024
1 parent dc23cdc commit df03f46
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/tidy.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit df03f46

Please sign in to comment.