From 394968753eac559443c60932938dba2346605d72 Mon Sep 17 00:00:00 2001 From: civisrom <167646351+civisrom@users.noreply.github.com> Date: Tue, 4 Feb 2025 20:15:05 +0300 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 515938d0..df9359e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,8 +28,20 @@ jobs: - name: Force update Go modules run: | + go mod init || true go mod tidy go mod download + + - name: Commit go.sum if missing + run: | + if [ ! -f go.sum ]; then + go mod tidy + git config --global user.email "github-actions@github.com" + git config --global user.name "GitHub Actions" + git add go.sum + git commit -m "Add missing go.sum" + git push origin main || echo "No changes to push" + fi - name: Setup Go uses: actions/setup-go@v5