-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2567 from w3c/tidy-on-demand
Add github action to tidy the spec
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: tidy-up spec | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
tidy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Download HTML5 Tidy 5.4 | ||
run: wget https://github.com/htacg/tidy-html5/releases/download/5.4.0/tidy-5.4.0-64bit.deb | ||
- name: Install tidy | ||
run: sudo dpkg -i tidy-5.4.0-64bit.deb | ||
- name: Run it | ||
run: >- | ||
tidy | ||
--char-encoding utf8 | ||
--indent yes | ||
--indent-spaces 2 | ||
--wrap 80 | ||
--tidy-mark no | ||
-m | ||
webrtc.htm | ||
- uses: peter-evans/create-pull-request@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.W3C_GITHUB_TOKEN }} | ||
with: | ||
title: Fix indenting | ||
commit-message: "With indenting with tidy" | ||
draft: true | ||
labels: Editorial | ||
branch: tidy-${{GITHUB_RUN_NUMBER}} |