Fix: use token for git clone

This commit is contained in:
loki5512344 2025-12-29 15:19:18 +01:00
parent f58cef0a40
commit 52037bc99c
2 changed files with 10 additions and 10 deletions

View file

@ -13,14 +13,11 @@ jobs:
steps:
- name: Checkout
run: |
git clone --depth 1 $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git .
git checkout $GITHUB_SHA
git clone --depth 1 https://oauth2:${{ secrets.RELEASE_TOKEN }}@git.lokili.xyz/${{ gitea.repository }}.git .
- name: Setup Java 21
run: |
curl -sL https://download.java.net/java/GA/jdk21.0.2/f2283984656d49d69e91c558476027ac/13/GPL/openjdk-21.0.2_linux-x64_bin.tar.gz | tar xz
echo "JAVA_HOME=$PWD/jdk-21.0.2" >> $GITHUB_ENV
echo "$PWD/jdk-21.0.2/bin" >> $GITHUB_PATH
- name: Build & Test
run: |