Skip to content

Commit

Permalink
fix: exit on error in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
mfw78 committed May 31, 2024
1 parent 772e8b1 commit 4f6a045
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/review-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- name: Check if PR modifies specific path
id: check-path
run: |
set -e # Exit on error
files=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | tr '\n' ' ')
if echo "$files" | grep -q 'src/'; then
echo "specific_path=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 4f6a045

Please sign in to comment.