Compare commits

..
2 Commits
+10 -12
View File
@@ -1,16 +1,12 @@
name: Build protos name: Build protos
on: on:
pull_request: pull_request:
branches: paths:
- main - '*.proto'
types: - '**/*.proto'
- opened
- synchronize permissions:
- reopened contents: write
- edited
push:
tags:
- 'v*.*.*'
jobs: jobs:
build: build:
@@ -21,6 +17,7 @@ jobs:
uses: actions/checkout@v7 uses: actions/checkout@v7
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.ref }}
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v7 uses: actions/setup-go@v7
@@ -40,9 +37,10 @@ jobs:
run: | run: |
make proto make proto
- name: Add changes to git - name: Commit and push changes
run: | run: |
git config --global user.name "actions[bot]" git config --global user.name "actions[bot]"
git config --global user.email "noreply@beejay.kim" git config --global user.email "noreply@beejay.kim"
git add . git add .
git diff --cached --exit-code || (git commit -m "Update generated protobufs" && git push) git commit -m "Update generated Protobufs" || echo "No changes to commit"
git push origin ${{ github.ref }} || echo "No changes to push"