Skip to content

Commit

Permalink
fix: workflow, again
Browse files Browse the repository at this point in the history
  • Loading branch information
dubfib authored Nov 25, 2024
1 parent 7eefd99 commit 23e9ddc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ on:
pull_request:
branches: [main]
jobs:
validate:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install -y yara
- run: find . -type f -iname "*.yara" -exec yara -w {} /dev/null \; 2>&1 | tee /dev/stderr | grep -q 'error' && exit 1
- run: |
output=$(find . -type f -iname "*.yara" -exec yara -w {} /dev/null \; 2>&1)
echo "$output"
echo "$output" | grep -q 'syntax error' && { echo "error"; exit 1; }

0 comments on commit 23e9ddc

Please sign in to comment.