mirror of
https://github.com/starship/starship.git
synced 2026-06-21 02:02:14 +07:00
ci: Use dprint to format documentation + TOML files (#3426)
Adds Rust-based standardized markdown formatting and a CI step to catch unformatted files.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
name: Format + Docs Workflow
|
||||
on:
|
||||
push:
|
||||
paths: ["docs/**","**.md","**.toml","**.js","**.json","**.ts"]
|
||||
pull_request:
|
||||
paths: ["docs/**","**.md","**.toml","**.js","**.json","**.ts"]
|
||||
|
||||
jobs:
|
||||
# Run the dprint code formatter for documentation
|
||||
dprint:
|
||||
name: Dprint [Docs Formatter]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup | Checkout
|
||||
uses: actions/checkout@v2.4.0
|
||||
- name: Docs | Format
|
||||
uses: dprint/check@v2.0
|
||||
Reference in New Issue
Block a user