Skip to content

Commit b547792

Browse files
committed
fix
1 parent 5fdf6b4 commit b547792

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/unit-test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,20 @@ jobs:
2020
run: |
2121
npm run setup-repo-old
2222
23+
- name: Fetch latest references
24+
run: |
25+
git fetch --prune
26+
2327
- name: Identify Changed Plugins
2428
id: changes
2529
run: |
2630
echo "Finding changed files..."
31+
# Ensure both commit references are valid
32+
if [[ -z "${{ github.event.before }}" || -z "${{ github.sha }}" ]]; then
33+
echo "Error: Missing commit references"
34+
exit 1
35+
fi
36+
2737
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})
2838
echo "Changed files:"
2939
echo "$CHANGED_FILES"

0 commit comments

Comments
 (0)