Skip to content

Commit

Permalink
Test all changes in PR against main
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-flinn committed Aug 19, 2023
1 parent 2b1bb41 commit 2a6cb16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
- name: Detect Changes
id: changes
run: |
FRONTEND_DIFF=$(git diff --name-only HEAD~1 -- frontend/* | wc -l | xargs)
DATA_DIFF=$(git diff --name-only HEAD~1 -- data/* | wc -l | xargs)
BACKEND_DIFF=$(git diff --name-only HEAD~1 -- backend/* | wc -l | xargs)
FRONTEND_DIFF=$(git diff --name-only origin/main -- frontend/* | wc -l | xargs)
DATA_DIFF=$(git diff --name-only origin/main -- data/* | wc -l | xargs)
BACKEND_DIFF=$(git diff --name-only origin/main -- backend/* | wc -l | xargs)
if [[ "$FRONTEND_DIFF" == "1" ]]; then
echo "frontend-changed=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 2a6cb16

Please sign in to comment.