Skip to content

Commit 00716e8

Browse files
Google APIscopybara-github
authored andcommitted
build: fix to correctly skip creating DIREGAPIC PRs if the only changes are in the output config
PiperOrigin-RevId: 740901415
1 parent e02c606 commit 00716e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/diregapic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# Skip any config-only changes when determining whether the API changed:
3333
# - The execution timestamp recorded in the config will always differ from the previous one
3434
# - Some schema hashes appear to change for no reason (internal issue 406083082)
35-
echo api_changes=$( { git diff-index HEAD | grep -v compute.config.json &> /dev/null ; } && git diff-index --shortstat HEAD) >> $GITHUB_ENV
35+
echo api_changes=$( { git diff --stat | grep -v file | grep -v compute.config.json ; } && git diff-index --shortstat HEAD) >> $GITHUB_ENV
3636
- name: Build GAPIC clients
3737
if: contains(env.api_changes, 'file')
3838
run: |

0 commit comments

Comments
 (0)