Submodule Checkout in Github Actions #147370
Replies: 1 comment
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
hi,
I have used submodule in my repo and i can get updated code in submodule using below commands in my VSCode - "git submodule update --init --recursive / git submodule update --remote " , however when i run below command in githib actions it fails.
Note : In this case, both the main repo and submodule repo are in the same organization repo only and hence i dont use any specific token/perm.
Code :
Error :
/usr/bin/git submodule sync
/usr/bin/git -c protocol.version=2 submodule update --init --force --depth=2
Submodule 'xyz/xyz1' (https://github.com/org-repo/xyz1.git) registered for path 'xyz/xyz1'
Cloning into '/home/runner/work/main-repo/main-repo/xyz/xyz1'...
remote: Repository not found.
Error: fatal: repository 'https://github.com/org-repo/xyz1.git/' not found
Error: fatal: clone of 'https://github.com/org-repo/xyz1.git' into submodule path '/home/runner/work/main-repo/main-repo/xyz/xyz1' failed
Failed to clone 'xyz/xyz1'. Retry scheduled
i tried running the command manually to check ,if we can do it instead of just activating in checkour - submodule :true
Submodule 'astro-test-subproject' (https://github.com/org-repo/xyz1.git) registered for path 'xyz/xyz1'
Cloning into '/home/runner/_work/main-repo/main-repo/xyz/xyz1'...
fatal: could not read Username for 'https://github.com': No such device or address
Can someone help me with the fix ?
Note : In this case, both the main repo and submodule repo are in the same organization repo only and hence i dont use any specific token/perm.
Beta Was this translation helpful? Give feedback.
All reactions