From c494a12633a7e59d68684ba3a5fe6e6e23007fc2 Mon Sep 17 00:00:00 2001 From: Periyasamy Palanisamy Date: Wed, 15 Dec 2021 16:52:13 +0100 Subject: [PATCH] fix: update dependent repo go.mod action Signed-off-by: Periyasamy Palanisamy --- .github/workflows/update-dependent-repositories-gomod.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/update-dependent-repositories-gomod.yaml b/.github/workflows/update-dependent-repositories-gomod.yaml index 6a00959..db4d8ee 100644 --- a/.github/workflows/update-dependent-repositories-gomod.yaml +++ b/.github/workflows/update-dependent-repositories-gomod.yaml @@ -56,7 +56,7 @@ jobs: - name: Update ${{ github.repository }} locally working-directory: networkservicemesh/${{ matrix.repository }} run: | - GOPRIVATE=github.com/networkservicemesh go get -u github.com/${{ github.repository }} + GOPRIVATE=github.com/networkservicemesh go get -u github.com/${{ github.repository }}@main go mod tidy git diff - name: Push update to the ${{ matrix.repository }} @@ -66,10 +66,6 @@ jobs: git config --global user.email "nsmbot@networkservicmesh.io" git config --global user.name "NSMBot" git add go.mod go.sum - if ! [ -n "$(git diff --cached --exit-code)" ]; then - echo ${{ matrix.repository }} is up to date - exit 0; - fi git commit -s -F /tmp/commit-message git checkout -b update/${{ github.repository }} git push -f origin update/${{ github.repository }}