Skip to content

Commit

Permalink
editorial: automatic formatting for all but aria spec
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
pkra committed May 22, 2024
1 parent 2acff78 commit 73d4cca
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Set update schedule for GitHub Actions

version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
commit-message:
prefix: "chore: dependabot"
27 changes: 27 additions & 0 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Prettier
# minimally modified from https://github.com/creyD/prettier_action#example-2-using-the-only_changed-or-same_commit-option-on-pr

on:
pull_request:
branches:
- main
- monorepo*

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0

- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: --write **/index.html --print-width 200
commit_message: "chore: prettier"
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/index.html

0 comments on commit 73d4cca

Please sign in to comment.