Skip to content

Commit 963fb0c

Browse files
committed
update anchor action, root Cargo.toml
1 parent 777d36b commit 963fb0c

File tree

3 files changed

+400
-25
lines changed

3 files changed

+400
-25
lines changed

.github/workflows/anchor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
# Check Cargo.lock version before build
132132
if [ -f "Cargo.lock" ]; then
133133
echo "Checking Cargo.lock version for $project"
134-
grep "^version = " Cargo.lock
134+
grep "^version = " Cargo.lock | head -n1
135135
else
136136
echo "No Cargo.lock found for $project"
137137
fi
@@ -143,7 +143,7 @@ jobs:
143143
# Check Cargo.lock version after failed build
144144
if [ -f "Cargo.lock" ]; then
145145
echo "Cargo.lock version after failed build:"
146-
grep "^version = " Cargo.lock
146+
grep "^version = " Cargo.lock | head -n1
147147
fi
148148
149149
echo "$project: anchor build failed" >> $GITHUB_WORKSPACE/failed_projects.txt

0 commit comments

Comments
 (0)