Skip to content

Commit

Permalink
chore(ci): ignore go.mod and go.sum changes in service dirs (#6921)
Browse files Browse the repository at this point in the history
  • Loading branch information
noahdietz committed Oct 25, 2022
1 parent f170284 commit 8f0e588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/apidiff.yml
Expand Up @@ -18,7 +18,7 @@ jobs:
id: changed_dirs
# Ignore changes to the internal and root directories.
run: |
dirs=$(git diff-tree --no-commit-id --name-only --diff-filter=DMR -r ${{ steps.main.outputs.hash }}..HEAD | xargs -r -L1 dirname | uniq | grep -v -e 'internal' -e '\.' | cat)
dirs=$(git diff-tree --no-commit-id --name-only --diff-filter=DMR -r ${{ steps.main.outputs.hash }}..HEAD | grep -v -e 'go\.[mod|sum]' | xargs -r -L1 dirname | uniq | grep -v -e 'internal' -e '\.' | cat)
if [ -z "$dirs" ]
then
echo "skip=1" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 8f0e588

Please sign in to comment.