Skip to content

Commit

Permalink
Add github action to tidy the spec
Browse files Browse the repository at this point in the history
close #2558
  • Loading branch information
dontcallmedom committed Aug 27, 2020
1 parent 46b858f commit 3cf1f43
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tidy.yml
@@ -0,0 +1,24 @@
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
sudo dpkg -i tidy-5.4.0-64bit.deb
- name: Run it
tidy --char-encoding utf8 --indent yes --indent-spaces 2 --wrap 80 --tidy-mark no -m webrtc.html
- 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}}

0 comments on commit 3cf1f43

Please sign in to comment.