Skip to content

Commit 0f19270

Browse files
authored
chore: sync main — eyrie submodule, gitignore, display name test fix (#47)
* chore: update .gitignore with timestamped cache dirs * feat: sync eyrie submodule + config updates for Xiaomi/MiniMax per-plan naming * fix(cmd): align GatewayDisplayName test with eyrie per-plan naming refactor * style: fix trailing newline * chore(submodule): update eyrie to ea9747b (formatting) * chore(submodule): update eyrie to 04b2cda (lint + test fixes) * chore(submodule): update eyrie to merged main * fix(readme): replace broken external hawk image with improved local SVG logo - Removed unreliable openclipart.org hotlink (frequently failed to render on GitHub) - Switched to assets/logo.svg with proper light/dark theme support via CSS prefers-color-scheme - Simplified illustration for better scalability at small sizes while retaining character - Added subtle adaptive frame, refined typography balance and spacing - Removed duplicate heading for cleaner header - Updated display width for the new logo This makes the project branding reliably visible in both GitHub light and dark modes. * fix(ci): update checkout-eyrie action to support submodule commits for sync PRs - Clone using the exact commit from git ls-tree for external repos when present (for submodule updates in sync PRs) - Falls back to branch clone otherwise - This fixes the undefined symbols and missing go.mod in CI for sync PRs that update eyrie and xiaomi support * fix(config): align xiaomi token plan env/resolve identifiers with eyrie per-plan naming
1 parent 8526131 commit 0f19270

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

.github/actions/checkout-eyrie/action.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@ runs:
2121
echo "$repo already present at $dest"
2222
continue
2323
fi
24-
ref="${{ inputs.ref }}"
25-
# Fall back to main if the branch doesn't exist on the dependency repo.
26-
if ! git ls-remote --heads "https://github.com/GrayCodeAI/${repo}.git" "$ref" | grep -q .; then
27-
echo "Branch '$ref' not found on $repo, falling back to main"
28-
ref="main"
24+
commit=$(git ls-tree HEAD "external/${repo}" | awk '{print $3}' || true)
25+
if [ -n "$commit" ]; then
26+
echo "Cloning $repo at submodule commit $commit"
27+
git clone --depth=1 "https://github.com/GrayCodeAI/${repo}.git" "$dest"
28+
(cd "$dest" && git checkout --quiet "$commit")
29+
else
30+
ref="${{ inputs.ref }}"
31+
# Fall back to main if the branch doesn't exist on the dependency repo.
32+
if ! git ls-remote --heads "https://github.com/GrayCodeAI/${repo}.git" "$ref" | grep -q .; then
33+
echo "Branch '$ref' not found on $repo, falling back to main"
34+
ref="main"
35+
fi
36+
git clone --depth=1 --branch "$ref" \
37+
"https://github.com/GrayCodeAI/${repo}.git" "$dest"
2938
fi
30-
git clone --depth=1 --branch "$ref" \
31-
"https://github.com/GrayCodeAI/${repo}.git" "$dest"
3239
done

0 commit comments

Comments
 (0)