You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments