-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathaction.yml
36 lines (33 loc) · 987 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build Buf
description: A GitHub action that provides buildbuf/buf
inputs:
bufVersion:
description: The version of buf to use (as in their GitHub releases)
default: v0.31.1
required: false
bufArgs:
description: The arguments to pass to buf
default: check lint
required: false
protocPlugins:
description:
The protoc language plugins to install, space separated. See README for
supported plugins.
default: "none"
required: false
runs:
using: composite
steps:
# requires actions within actions as tracked in https://github.com/actions/runner/issues/646
# - uses: actions/cache@v2
- name: Maybe install and definitely invoke buf
shell: bash
run: |
REPO_DIR="$(pwd)"
cd ${{ github.action_path }}
source scripts/install-buf.sh ${{ inputs.bufVersion }} "${{ inputs.protocPlugins }}"
cd $REPO_DIR
buf ${{ inputs.bufArgs }}
branding:
color: blue
icon: box