From c3339ab49a379add17eb31f4435523dbcf621a70 Mon Sep 17 00:00:00 2001 From: Alek Kim Date: Wed, 11 Nov 2026 17:03:26 +0900 Subject: [PATCH] update CI configuration to commit and push generated Protobufs --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6fdb7c9..93c936b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,6 +21,7 @@ jobs: uses: actions/checkout@v7 with: fetch-depth: 0 + ref: ${{ github.ref }} - name: Set up Go uses: actions/setup-go@v7 @@ -40,9 +41,10 @@ jobs: run: | make proto - - name: Add changes to git + - name: Commit and push changes run: | git config --global user.name "actions[bot]" git config --global user.email "noreply@beejay.kim" 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"