ci: fix git fetch depth (--depth=0 -> --unshallow)
build / Assemble debug APK (push) Failing after 6s
build / Assemble debug APK (push) Failing after 6s
This commit is contained in:
1 parent
5f46579a66
commit
a6269a821e
1 file changed
+3
-4
@@ -14,11 +14,10 @@ jobs:
|
||||
# Checkout: clone the repo directly instead of actions/checkout
|
||||
- name: Checkout
|
||||
run: |
|
||||
git clone --depth 1 https://git.trevena.info/nick/incido.git repo
|
||||
git clone https://git.trevena.info/nick/incido.git repo
|
||||
cd repo
|
||||
# Fetch full history for gradle
|
||||
git fetch --depth=0 origin main
|
||||
git checkout main
|
||||
# Shallow clone for speed but fetch full history needed by Gradle
|
||||
git fetch --unshallow origin main
|
||||
|
||||
# Set up JDK 17 via apt instead of actions/setup-java
|
||||
- name: Set up JDK 17
|
||||
|
||||
Reference in new issue
Block a user