update: update publish file add git
Some checks failed
Publish / Publish Job (push) Failing after 2m31s

This commit is contained in:
Дмитрий
2026-03-30 18:28:41 +03:00
parent 9f5afc5a36
commit 4f1a68df5a

View File

@@ -54,5 +54,16 @@ jobs:
--go_out=paths=source_relative:./gen/go \ --go_out=paths=source_relative:./gen/go \
--go-grpc_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 - name: Publish package
run: npm publish run: npm publish