From 272b1f515414f066f0c1eb838dfe1fccff405fae Mon Sep 17 00:00:00 2001 From: muraca Date: Tue, 3 Oct 2023 19:15:09 +0200 Subject: [PATCH] small improvements Signed-off-by: muraca --- Readme.md | 4 ++-- action.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Readme.md b/Readme.md index eb224b4..4777197 100644 --- a/Readme.md +++ b/Readme.md @@ -3,7 +3,7 @@ TOML Sort Simple tool for sorting toml files via cli or ci. It was made with `Cargo.toml` files in mind but is likely useful elsewhere. -## Usage +## CLI Usage ### Installation @@ -23,7 +23,7 @@ toml-sort [files] toml-sort --check [files] ``` -### GitHub Action +## GitHub Action This will only check `./Cargo.toml`: ```yaml diff --git a/action.yml b/action.yml index 7e60995..066bd3b 100644 --- a/action.yml +++ b/action.yml @@ -11,7 +11,7 @@ inputs: required: true default: "Cargo.toml" all: - description: "Performs check on all the TOML files it can find" + description: "Performs check on all the TOML files it can find starting from current directory" required: true default: false @@ -22,11 +22,11 @@ runs: shell: "bash" run: cargo install --git https://github.com/Off-Narrative-Labs/toml_sort - if: ${{ inputs.all }} - name: "Running TOML Sort on all files" + name: "Running TOML Sort check on all TOML files starting from current directory" shell: "bash" run: find . -name "*.toml" | xargs -L1 toml-sort --check - if: ${{ !inputs.all }} - name: "Running TOML Sort on given files" + name: "Running TOML Sort check on given files" shell: "bash" run: toml-sort --check {{ inputs.files }} \ No newline at end of file