Skip to content

Commit

Permalink
fix(ci): handle grep with no results gracefully
Browse files Browse the repository at this point in the history
`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 <[email protected]>
  • Loading branch information
max-nextcloud committed May 23, 2024
1 parent e8c6254 commit 764cb3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update-node-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
run: |
{
echo 'MESSAGE<<EOF'
git log -1 --pretty=%s | grep -v '^chore(assets): recompile assets$'
git log -1 --pretty=%s | grep -v '^chore(assets): recompile assets$' || test $? -eq 1
echo 'EOF'
} >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 764cb3a

Please sign in to comment.