Skip to content

Commit 9690d47

Browse files
committed
chore: github action to run prettier
Matches w3c/graphics-aria#10, including dependabot for the action.
1 parent ffc614e commit 9690d47

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
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)