Skip to content

Commit

Permalink
ensures we continue even if grep returns a non-zero exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacksonmills committed Oct 26, 2023
1 parent f4de02f commit a9675a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
run: |
set -x
git fetch origin next:next
changes=$(git diff --name-only next...${{ github.sha }} | grep '^cli/')
changes=$(git diff --name-only next...${{ github.sha }} | grep '^cli/' || true)
echo "Debug: Value of 'changes' variable: $changes"
if [[ -n "$changes" ]]; then
echo "Debug: Entering conditional block because 'changes' is non-empty."
Expand Down

0 comments on commit a9675a0

Please sign in to comment.