mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
0df8cd620c
The main reason for the change is I'm trying to use this library with Bazel, using gazelle. Gazelle automates creation of the Bazel rules for a Go module. Gazelle assumes files ending in '.proto' are Protocol Buffer files and invokes protoc on the file to generate the Go code for the proto file. Unfortunately, protoc doesn't seem to like Makefiles. As a side-benefit, editors that don't support Emacs mode hints `-*- mode: makefile; -*-` won't try to highlight the Makefile as a protobuf file.
23 lines
568 B
YAML
23 lines
568 B
YAML
name: Proto-go-generator
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'exporters/otlp/internal/opentelemetry-proto'
|
|
|
|
jobs:
|
|
protogen:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: '^1.14.0'
|
|
- run: sudo apt-get -y install rsync wget unzip
|
|
- run: make -f Makefile.protos protobuf clean
|
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
|
id: commit-changes
|
|
with:
|
|
commit_message: Commit changes in updated/new protobuf files
|