Skip to content

Commit 02ad30a

Browse files
committed
Initial commit
1 parent a1c0385 commit 02ad30a

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM alpine:latest
2+
3+
LABEL version="0.1.0"
4+
LABEL repository="https://github.com/plexsystems/protolint-action"
5+
LABEL homepage="https://github.com/plexsystems/protolint-action"
6+
7+
COPY LICENSE README.md /
8+
9+
ARG PROTOLINT_VERSION=0.17.0
10+
RUN wget https://github.com/yoheimuta/protolint/releases/download/v${PROTOLINT_VERSION}/protolint_${PROTOLINT_VERSION}_Linux_x86_64.tar.gz \
11+
&& tar xf protolint_${PROTOLINT_VERSION}_Linux_x86_64.tar.gz \
12+
&& mv protolint /usr/local/bin/protolint
13+
14+
ENTRYPOINT ["protolint"]

action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Protolint'
2+
description: 'A tool to enforce Protocol Buffer style and conventions'
3+
author: 'Plex Systems'
4+
5+
branding:
6+
icon: 'code'
7+
color: 'black'
8+
9+
inputs:
10+
command:
11+
description: 'The command to run with protolint'
12+
required: true
13+
14+
runs:
15+
using: 'docker'
16+
image: 'Dockerfile'
17+
args:
18+
- ${{ inputs.command }}

0 commit comments

Comments
 (0)