Skip to content

Commit 5d7620e

Browse files
committed
workflows
1 parent fe0444d commit 5d7620e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/src-data-change.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ jobs:
4242
- name: Copy from src-data branch
4343
run: |
4444
echo "Fetching src-data branch..."
45-
git fetch origin src-data --depth=1
46-
47-
echo "Restoring files from src-data..."
48-
git restore --source origin/src-data --staged --worktree -- . || true
49-
50-
echo "✓ Copied from src-data"
45+
if git fetch origin src-data --depth=1; then
46+
echo "✓ Fetched src-data"
47+
echo "Restoring files from src-data..."
48+
git restore --source origin/src-data --staged --worktree -- . || true
49+
echo "✓ Copied from src-data"
50+
else
51+
echo "❌ Failed to fetch src-data branch"
52+
echo "Please ensure the src-data branch exists on origin"
53+
exit 1
54+
fi
5155
5256
5357
- name: Find vocabulary directories

0 commit comments

Comments
 (0)