]> git.madduck.net Git - etc/vim.git/blob - docs/github_actions.md

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Simplify GitHub Action entrypoint (#2119)
[etc/vim.git] / docs / github_actions.md
1 [//]: # "NOTE: THIS FILE WAS AUTOGENERATED FROM README.md"
2
3 # GitHub Actions
4
5 Create a file named `.github/workflows/black.yml` inside your repository with:
6
7 ```yaml
8 name: Lint
9
10 on: [push, pull_request]
11
12 jobs:
13   lint:
14     runs-on: ubuntu-latest
15     steps:
16       - uses: actions/checkout@v2
17       - uses: actions/setup-python@v2
18       - uses: psf/black@stable
19         with:
20           black_args: ". --check"
21 ```
22
23 ## Inputs
24
25 ### `black_args`
26
27 **optional**: Black input arguments. Defaults to `. --check --diff`.