An open API service indexing awesome lists of open source software.

https://github.com/frequenz-floss/gh-action-protolint

An opinionated pre-configured version of https://github.com/yoheimuta/action-protolint
https://github.com/frequenz-floss/gh-action-protolint

Last synced: 10 months ago
JSON representation

An opinionated pre-configured version of https://github.com/yoheimuta/action-protolint

Awesome Lists containing this project

README

          

# Protolint Action

This action runs [protolint](https://github.com/yoheimuta/protolint) using the
[action-protolint](https://github.com/yoheimuta/action-protolint) GitHub
Action with a custom configuration used in most Frequenz projects.

Here is an example demonstrating how to use it in a workflow:

```yaml
jobs:
protolint:
name: Check proto files with protolint
runs-on: ubuntu-20.04

steps:
- name: Run protolint
uses: frequenz-io/gh-action-protolint@v0.x.x
```

By default, the action will checkout submodules (non-recursively) and use the
`secrets.github_token` to do both the fetching and to do GitHub API calls to
comment in PRs for example. It looks for proto files in the `proto/` directory
and uses a fixed protolint version (please look at the
[`action.yml`](./action.yml) file for the current version).

You can change those defaults using custom inputs. For example:

```yaml
jobs:
protolint:
name: Check proto files with protolint
runs-on: ubuntu-20.04

steps:
- name: Run protolint
uses: frequenz-io/gh-action-protolint@v0.x.x
with:
submodules: recursive
checkout_token: ${{ secrets.my_checkout_token }}
api_token: ${{ secrets.my_api_token }}
protolint_flags: "-config_path=.github/protolint.yaml proto/"
protolint_version: "v0.46.0"
```