Skip to content

ci: Change taplo rules #1

ci: Change taplo rules

ci: Change taplo rules #1

Workflow file for this run

name: Taplo formatting
on:
push:
paths: "**/*.toml"
pull_request:
paths: "**/*.toml"
jobs:
toml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install taplo
run: cargo install taplo-cli --lock
- name: Run taplo
run: taplo format --check --diff
- name: Taplo failure info
if: failure()
run: |
echo 'TOML is not formatted correctly'
echo 'Please run `taplo format`'