Skip to content

Commit

Permalink
update the script for the tidy action
Browse files Browse the repository at this point in the history
  • Loading branch information
siusin committed Sep 26, 2024
1 parent 9f6b8f7 commit 938f824
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ on:
jobs:
tidy:
name: Tidy up
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: brew install tidy-html5
- uses: actions/checkout@v4
- name: Install tidy/html5
run: sudo apt-get install -y tidy
- run: tidy -config tidyconfig.txt -o index.html index.html
- uses: peter-evans/create-pull-request@v3
- uses: peter-evans/create-pull-request@v5
with:
title: "chore(tidy): tidy up document"
commit-message: "Tidied up document using tidy-html5"
title: "Tidied up document using tidy-html5"
commit-message: "chore: tidy up index.html"
branch: html-tidy
# A custom token is needed to trigger further workflow runs
# https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#triggering-further-workflow-runs
token: ${{ secrets.GH_TOKEN }}

0 comments on commit 938f824

Please sign in to comment.