From 002bfa5783106497ca80aa9c67d50027de7509ed Mon Sep 17 00:00:00 2001 From: Xikaro <0regon.end@gmail.com> Date: Thu, 14 Dec 2023 17:20:56 +0500 Subject: [PATCH] Update preview.yml --- .github/workflows/preview.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index c762114b5..5e3367373 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -44,9 +44,11 @@ jobs: - name: Archive MMC run: | git submodule init - git submodule update - Username: Xikaro - Password: TFG + cd mods + git config --local credential.helper '!f() { sleep 1; echo "password=USER_TOKEN_XIKARO"; }; f' + git config --local http.https://github.com.Xikaro.extraheader "AUTHORIZATION: basic $(git credential-cache get)" + git config --local url."https://github.com/Xikaro:USER_TOKEN_XIKARO@github.com".insteadOf "https://github.com/TerraFirmaGreg-Team/TFG-Mods-1.20.x" + git submodule update --recursive mkdir -p .minecraft cp -r ./{config,defaultconfigs,kubejs,mods,.github/buildtools/modpack/mmc-pack.json,.github/buildtools/modpack/instance.cfg} .minecraft/ zip -r ./TerraFirmaGreg-1.20.x-${{ steps.get_version.outputs.version }}-mmc.zip .minecraft/