Skip to content
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

fix(ci): handle grep with no results gracefully #5826

Merged
merged 1 commit into from
May 23, 2024

Conversation

max-nextcloud
Copy link
Collaborator

grep will return an exit code of 1 if no result was found.

Check for that and let the job continue.

In case of errors grep will return a higher exit code and the job will abort as intended.

🖼️ Screenshots

🏚️ Before

grafik

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

`grep` will return an exit code of 1 if no result was found.

Check for that and let the job continue.

In case of errors grep will return a higher exit code
and the job will abort as intended.

Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud merged commit 46648e5 into main May 23, 2024
63 checks passed
@max-nextcloud max-nextcloud deleted the fix/update-node-dist-workflow-grep branch May 23, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants