Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

Commit d202465

Browse files
committed
Refactor GitHub Actions workflow to improve submodule handling and enhance debugging steps
1 parent 758fa83 commit d202465

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/build-agent-manager.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Push agent-manager Image
33
on:
44
push:
55
branches: [main]
6-
workflow_dispatch: # Run manually from GitHub UI if needed
6+
workflow_dispatch:
77

88
jobs:
99
build:
@@ -16,14 +16,19 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818
with:
19-
submodules: recursive
20-
fetch-depth: 0 # Full history helps with cache
19+
submodules: false # Skip automatic submodule init
2120

22-
- name: Debug context (for troubleshooting)
21+
- name: Manually init and update submodules
22+
run: |
23+
git submodule sync --recursive
24+
git config --global url."git://github.com/".insteadOf "https://github.com/" # Use git:// for anonymous clone (no auth prompt)
25+
git submodule update --init --recursive --force
26+
27+
- name: Debug context
2328
run: |
2429
ls -la .
25-
ls -la agent-manager || echo "agent-manager folder missing!"
26-
ls -la agent-manager/src || echo "src folder missing or empty!"
30+
ls -la agent-manager || echo "agent-manager missing!"
31+
ls -la agent-manager/src || echo "src missing or empty!"
2732
ls -la agent-manager/src/*.js 2>/dev/null || echo "No JS files found in src"
2833
cat agent-manager/package.json || echo "package.json not found"
2934
@@ -44,6 +49,5 @@ jobs:
4449
file: ./agent-manager/Dockerfile
4550
push: true
4651
tags: ghcr.io/anentrypoint/agent-manager:latest
47-
no-cache: false # Use cache if available; set true for force clean build
4852
cache-from: type=gha
4953
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)