Skip to content

Commit 73d4cca

Browse files
committed
editorial: automatic formatting for all but aria spec
Adds: - .prettierignore: ignore ARIA spec index.html - .github/workflows/dependabot.yaml: check for updates - .github/workflows/prettier.yaml: run prettier on */index.html (except what is specified in .prettierignore)
1 parent 2acff78 commit 73d4cca

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

.github/workflows/dependabot.yaml

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"

.github/workflows/prettier.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
- monorepo*
9+
10+
jobs:
11+
prettier:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
# Make sure the actual branch is checked out when running on pull requests
19+
ref: ${{ github.head_ref }}
20+
# This is important to fetch the changes to the previous commit
21+
fetch-depth: 0
22+
23+
- name: Prettify code
24+
uses: creyD/[email protected]
25+
with:
26+
prettier_options: --write **/index.html --print-width 200
27+
commit_message: "chore: prettier"

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/index.html

0 commit comments

Comments
 (0)