From 7d60943a0df32d52e6e9ab9276d68fc7ec6ca085 Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Tue, 9 Jun 2020 09:51:01 +0200 Subject: [PATCH] doc: update example to use yaml syntax --- README.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index c2033a6..794fc1e 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,20 @@ A GitHub action that runs [black code formatter](https://github.com/ambv/black) ## Example Workflow -```workflow -workflow "Example Workflow" { - on = "push" - resolves = ["Lint"] -} +```yaml +name: Code Quality Checks -action "Lint" { - uses = "lgeiger/black-action@master" - args = ". --check" -} +on: [push] + +jobs: + black: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Run Black + uses: lgeiger/black-action@master + with: + args: --check src/ tests/ ``` For a full list of possible `args` checkout the [black docs](https://github.com/ambv/black#command-line-options).