Update release.yml

This commit is contained in:
civisrom 2025-02-04 20:15:05 +03:00 committed by GitHub
parent cb539ff767
commit 394968753e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,9 +28,21 @@ 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
with: