diff options
| author | Asko Nõmm <asko@nmm.ee> | 2026-01-25 15:14:25 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2026-01-25 15:14:25 +0200 |
| commit | d0ae0a85c21985f3102d613c0a1f2ff1f7fe6240 (patch) | |
| tree | f67c1f9b642aa1370f18115d7870911646464978 /.forgejo | |
| parent | 5610f1c545f2b5018118fd3a3b1ed6a2499a283d (diff) | |
Fix checkout: use git fetch instead of clone to avoid network issues
Diffstat (limited to '.forgejo')
| -rw-r--r-- | .forgejo/workflows/tests.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index cc5fd00..27fbdee 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -17,7 +17,12 @@ jobs: apt-get install -y curl wget bash rlwrap unzip git - name: Checkout - uses: actions/checkout@v4 + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + git init + git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" + git fetch --depth 1 origin "${GITHUB_SHA}" + git checkout FETCH_HEAD - name: Install Java (Zulu 24) run: | |
