Skip to content

Commit

Permalink
feat: add git diff output to check for changed packages
Browse files Browse the repository at this point in the history
Signed-off-by: Autumn60 <[email protected]>
  • Loading branch information
Autumn60 committed Jul 27, 2024
1 parent f2ca464 commit bf84e6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Check for changed packages
id: changed-packages
run: |
echo "Before Commit: ${{ github.event.before }}"
echo "After Commit: ${{ github.sha }}"
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
CHANGED_PACKAGES=$(echo "$CHANGED_FILES" | grep -E '^(src/[^/]+(/[^/]+)*)' | while read -r file; do
Expand Down

0 comments on commit bf84e6c

Please sign in to comment.