Skip to content

Commit

Permalink
Merge pull request #32 from networkservicemesh/fix-update-workflow
Browse files Browse the repository at this point in the history
Exit `update-dependent-repositories` workflow if a dependent repo doesn't have `govpp` dependency
  • Loading branch information
denis-tingaikin authored Mar 12, 2024
2 parents 37cda48 + b5266d2 commit 3c0a753
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/update-dependent-repositories.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ jobs:
- name: Update ${{ matrix.repository }} locally
working-directory: networkservicemesh/${{ matrix.repository }}
run: |
has_dep=$(grep "github.com/${{ github.repository }}" go.mod | grep -v "// indirect" -c)
if [ "$has_dep" -eq 0 ]; then
echo "${{ matrix.repository }} repo doesn't have ${{ github.repository }} dependency"
exit 0
fi
go get -u github.com/${{ github.repository }}@${{ github.sha }}
go mod tidy
git diff
Expand Down

0 comments on commit 3c0a753

Please sign in to comment.