restore internal/ml_metadata/proto/*.go as request #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ 'main' ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.19' | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install makefile dependencies | |
run: make deps | |
- name: Clean | |
run: make clean | |
- name: Build | |
run: make build | |
- name: touch changes.temp to check uncommitted changes | |
run: touch change.temp | |
- name: Check if there are uncommitted changes | |
id: changes | |
uses: UnicornGlobal/[email protected] | |
- name: Process changes | |
if: steps.changes.outputs.changed == 1 | |
run: | | |
echo "Uncommitted file changes detected" | |
exit 1 |