Skip to content

Commit

Permalink
fix: workflow, again (x2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dubfib authored Nov 25, 2024
1 parent 23e9ddc commit 8f2b39d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ name: Validate

on:
push:
branches: [main]
branches: [ main ]
pull_request:
branches: [main]
branches: [ main ]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install -y yara
- run: |
output=$(find . -type f -iname "*.yara" -exec yara -w {} /dev/null \; 2>&1)
output=$(find . -type f -iname "*.yara" -exec yara -w {} \; 2>&1)
echo "$output"
echo "$output" | grep -q 'syntax error' && { echo "error"; exit 1; }
if echo "$output" | grep -q 'syntax error'; then
echo "syntax error"
exit 1
fi

0 comments on commit 8f2b39d

Please sign in to comment.