Skip to content

fix: continue the action when grep -L returns exit status 1 #1677

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025

Conversation

copybara-service[bot]
Copy link

fix: continue the action when grep -L returns exit status 1

grep -L returns status 1 when there are modified files that don't have the from __future__ import annotations pattern. Previously if this happens, the entire GitHub action by default will stop and exit with status 1. Adding || true will prevent this from happening and continue the workflow.

@copybara-service copybara-service bot added the google-contributor [Bot] This PR is created by Google label Jun 26, 2025
@copybara-service copybara-service bot force-pushed the copybara/776234910 branch from 190a1a6 to 0938824 Compare July 1, 2025 23:54
`grep -L` returns status 1 when there are modified files that don't have the `from __future__ import annotations` pattern. Previously if this happens, the entire GitHub action by default will stop and exit with status 1. Adding `|| true` will prevent this from happening and continue the workflow.

PiperOrigin-RevId: 778246018
@copybara-service copybara-service bot force-pushed the copybara/776234910 branch from 0938824 to 9af2394 Compare July 1, 2025 23:58
@copybara-service copybara-service bot merged commit 9af2394 into main Jul 1, 2025
@copybara-service copybara-service bot deleted the copybara/776234910 branch July 1, 2025 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
google-contributor [Bot] This PR is created by Google
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant