Skip to content

Commit 257c569

Browse files
committed
Update README.md
1 parent 46d555a commit 257c569

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

README.md

+34-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1-
# action-swiftlint
1+
# GitHub Action for SwiftLint
22

3-
A description of this package.
3+
This Action executes [SwiftLint](https://github.com/realm/SwiftLint) and generates annotations from SwiftLint Violations by using [GitHub Checks API](https://blog.github.com/2018-05-07-introducing-checks-api/).
4+
5+
## Usage
6+
7+
An example workflow to executing SwiftLint follows:
8+
9+
```hcl
10+
workflow "Execute SwiftLint" {
11+
on = "push"
12+
resolves = ["swiftlint"]
13+
}
14+
15+
action "swiftlint" {
16+
uses = "norio-nomura/action-swiftlint@master"
17+
secrets = ["GITHUB_TOKEN"]
18+
}
19+
```
20+
21+
## Secrets
22+
23+
- Specifying `GITHUB_TOKEN` to `secrets` is required to using [Check Run APIs](https://developer.github.com/v3/checks/runs/) for generating annotations from SwiftLint Violations.
24+
25+
## Example
26+
[Here](https://github.com/norio-nomura/test-action-swiftlint/pull/1/files#annotation_9749095) is an example that actually works.
27+
![screenshot](screenshot.png)
28+
29+
## Author
30+
31+
Norio Nomura
32+
33+
## License
34+
35+
[MIT](LICENSE)

screenshot.png

101 KB
Loading

0 commit comments

Comments
 (0)