Skip to content

Commit aba4066

Browse files
authored
Merge pull request #58 from w3c/prettierCI
chore: github action to run prettier
2 parents ffc614e + d2fbd5c commit aba4066

File tree

4 files changed

+12025
-9065
lines changed

4 files changed

+12025
-9065
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"
10+
open-pull-requests-limit: 10
11+
commit-message:
12+
prefix: "chore: dependabot"
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Prettier
2+
# minimally modified from https://github.com/creyD/prettier_action#example-2-using-the-only_changed-or-same_commit-option-on-pr
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
prettier:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
# Make sure the actual branch is checked out when running on pull requests
18+
ref: ${{ github.head_ref }}
19+
# This is important to fetch the changes to the previous commit
20+
fetch-depth: 0
21+
22+
- name: Prettify code
23+
uses: creyD/[email protected]
24+
with:
25+
prettier_options: --write *.html --print-width 200
26+
commit_message: "chore: prettier"

0 commit comments

Comments
 (0)