From 5be7ece8a041bcc3f73a9be655edc0dcc8ccfd38 Mon Sep 17 00:00:00 2001 From: Chl <42654312+xlii-chl@users.noreply.github.com> Date: Fri, 30 Aug 2024 01:50:53 +0200 Subject: [PATCH] Update generate-release-zipfile.yml --- .github/workflows/generate-release-zipfile.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/generate-release-zipfile.yml b/.github/workflows/generate-release-zipfile.yml index d68c2c8..bf623ce 100644 --- a/.github/workflows/generate-release-zipfile.yml +++ b/.github/workflows/generate-release-zipfile.yml @@ -19,6 +19,16 @@ jobs: echo ratata >> 'tutu tutu*.txt' ls -R + - name: "Github requires checkout for 'uses: ./' (or we could hard write the repository's URL ?)" + run: | + git init + MY_AUTHENTICATED_URL="$( echo "$GITHUB_SERVER_URL" | sed "s#^\(https\?://\)#\1$GITHUB_TOKEN\@#" )" + git remote add origin "$MY_AUTHENTICATED_URL"/"$GITHUB_REPOSITORY" + # Little and optional speed optimization + git config --local gc.auto 0 + git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin "$GITHUB_SHA" + git reset --hard "$GITHUB_SHA" + - name: Testing the artifact uploading id: "uploading" uses: ./