Skip to content

Commit

Permalink
Update bypass-review.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-sorrentino committed Sep 3, 2024
1 parent 8afa982 commit 738f09e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/bypass-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ jobs:
- name: Check for specific files and approve if conditions are met
run: |
FILES=$(git diff --name-only main $GITHUB_HEAD_REF)
git diff --name-only origin/main $GITHUB_HEAD_REF > file_list.txt
# Check for non-matching files
if echo "$FILES" | grep -v -qE '(\.css$|^hushline/version.py$)'; then
if grep -v -qE '(\.css$|^hushline/version.py$)' file_list.txt; then
echo "PR contains files other than .css or hushline/version.py. Exiting without approval."
exit 0 # Exit without failure
fi
Expand Down

0 comments on commit 738f09e

Please sign in to comment.