From 4f1a68df5adbadd074c0bb6726faf5d1fb83a6b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Mon, 30 Mar 2026 18:28:41 +0300 Subject: [PATCH] update: update publish file add git --- .github/workflows/publish.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 63c9eaa..ffa93a7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -54,5 +54,16 @@ jobs: --go_out=paths=source_relative:./gen/go \ --go-grpc_out=paths=source_relative:./gen/go + - name: Commit and push changes + run: | + # Представляемся Git-ботом + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + # Добавляем папку gen в индекс + git add ./gen + + # Проверяем, есть ли изменения. Если есть — коммитим и пушим. + git diff --quiet && git diff --staged --quiet || (git commit -m "chore: auto-generate protobuf files [skip ci]" && git push) - name: Publish package run: npm publish