Backport of ci: Run `go mod tidy` check on submodules into release/1.16.x (#19747)

backport of commit 5316676bb671a973d4a04a9d0fd1db7b922cea86

Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
This commit is contained in:
hc-github-team-consul-core 2023-11-27 15:41:53 -06:00 committed by GitHub
parent 9192970c5d
commit b3d1dd1493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ jobs:
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v3.5.0 - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v3.5.0
with: with:
go-version-file: 'go.mod' go-version-file: 'go.mod'
- run: go mod tidy # Run on all go.mod (include submodules).
- run: make go-mod-tidy
- run: | - run: |
if [[ -n $(git status -s) ]]; then if [[ -n $(git status -s) ]]; then
echo "Git directory has changes" echo "Git directory has changes"