From 72376b89e675466e5c3a8398a6715737f4804bc5 Mon Sep 17 00:00:00 2001 From: civisrom <167646351+civisrom@users.noreply.github.com> Date: Fri, 21 Feb 2025 15:58:03 +0300 Subject: [PATCH] Update update-dependencies.yml --- .github/workflows/update-dependencies.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index c3063f1c..c613f1c8 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -34,6 +34,19 @@ jobs: echo "Error: go.mod file not found" exit 1 fi + + - name: Check go.mod and go.sum exist + run: | + if [ ! -f go.mod ]; then + echo "Error: go.mod file not found" + exit 1 + fi + + # Проверка наличия go.sum и создание, если отсутствует + if [ ! -f go.sum ]; then + echo "go.sum file not found, initializing it..." + go mod tidy + fi - name: Clean Go module cache run: |